Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/symphonia/object.rb
Instance Method Summary collapse
Instance Method Details
#to_boolean ⇒ Object
3 4 5 |
# File 'lib/symphonia/object.rb', line 3 def to_boolean ['true', 1, '1', 'yes', 't', 'y'].include?(downcase) end |