Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/sabisu/config.rb
Overview
extend String class
Instance Method Summary collapse
Instance Method Details
#to_bool ⇒ Object
3 4 5 |
# File 'lib/sabisu/config.rb', line 3 def to_bool self == true || self =~ (/(true|t|yes|y|1)$/i) ? true : false end |