Class: String

Inherits:
Object show all
Defined in:
lib/redmine_extensions/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#to_booleanObject



2
3
4
# File 'lib/redmine_extensions/core_ext/string.rb', line 2

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