Class: Sunspot::Type::BooleanType
- Inherits:
-
Object
- Object
- Sunspot::Type::BooleanType
- Defined in:
- lib/lunr/sunspot.rb
Instance Method Summary collapse
Instance Method Details
#cast(thing) ⇒ Object
29 30 31 |
# File 'lib/lunr/sunspot.rb', line 29 def cast thing thing == "true" ? true : thing == "false" ? false : !!thing end |