class SearchCopGrammar::Attributes::Float
Public Instance Methods
compatible?(value)
click to toggle source
# File lib/search_cop_grammar/attributes.rb, line 195 def compatible?(value) return true if value.to_s =~ /^-?[0-9]+(\.[0-9]+)?$/ false end
map(value)
click to toggle source
# File lib/search_cop_grammar/attributes.rb, line 201 def map(value) value.to_f end