Class: String

Inherits:
Object show all
Defined in:
lib/symphonia/object.rb

Instance Method Summary collapse

Instance Method Details

#to_booleanObject



10
11
12
# File 'lib/symphonia/object.rb', line 10

def to_boolean
  ['true', 1, '1', 'yes', 't', 'y'].include?(self.downcase)
end