Class: AttrSearchableGrammar::Attributes::Float
- Inherits:
-
WithoutMatches
- Object
- Base
- WithoutMatches
- AttrSearchableGrammar::Attributes::Float
- Defined in:
- lib/attr_searchable_grammar/attributes.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from WithoutMatches
Methods inherited from Base
#fulltext?, #initialize, #map, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from AttrSearchableGrammar::Attributes::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AttrSearchableGrammar::Attributes::Base
Instance Method Details
#compatible?(value) ⇒ Boolean
142 143 144 145 146 |
# File 'lib/attr_searchable_grammar/attributes.rb', line 142 def compatible?(value) return true if value.to_s =~ /^[0-9]+(\.[0-9]+)?$/ false end |