class AttrSearchableGrammar::Attributes::Float

Public Instance Methods

compatible?(value) click to toggle source
# File lib/attr_searchable_grammar/attributes.rb, line 142
def compatible?(value)
  return true if value.to_s =~ /^[0-9]+(\.[0-9]+)?$/

  false
end