Class: String
Instance Method Summary collapse
Instance Method Details
#to_boolean ⇒ Object
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 |