Sha256: ccd71488aa26abc4648297c83e31f3ac74b35150bd616ce272399dfea605e8a3

Contents?: true

Size: 102 Bytes

Versions: 84

Compression:

Stored size: 102 Bytes

Contents

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

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
redmine_extensions-0.6.3 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.6.2 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.6.1 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.6.0 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.4.5 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.5.1 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.4.4 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.4.3 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.4.1 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.4.0 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.4.0.beta lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.11 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.10 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.9 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.8 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.7 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.6 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.4 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.3 lib/redmine_extensions/core_ext/string.rb
redmine_extensions-0.3.2 lib/redmine_extensions/core_ext/string.rb