Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/santas_little_helper.rb
Instance Method Summary collapse
Instance Method Details
#to_boolean ⇒ Object
104 105 106 |
# File 'lib/santas_little_helper.rb', line 104 def to_boolean !!(self =~ /^(true|t|yes|y|1)$/i) end |