Module: EasyType::Syncers::CaseInsensitive
- Defined in:
- lib/easy_type/syncers.rb
Overview
Doc
Instance Method Summary collapse
Instance Method Details
#insync?(is) ⇒ Boolean
19 20 21 22 23 24 25 26 27 |
# File 'lib/easy_type/syncers.rb', line 19 def insync?(is) if is == :absent should.nil? elsif should == :absent is.nil? else should.casecmp(is).zero? ? true : false end end |