Class: String
Instance Method Summary collapse
-
#to_b ⇒ Object
Converts str to a boolean.
Instance Method Details
#to_b ⇒ Object
Converts str to a boolean. Returns true if not empty.
56 57 58 |
# File 'lib/mug/bool.rb', line 56 def to_b !empty? end |