Sha256: 2fc0d7206b80299d8ddee703c3265d72335adab7cbe9f9035f2484517d664eda

Contents?: true

Size: 77 Bytes

Versions: 53

Compression:

Stored size: 77 Bytes

Contents

class String
  def to_boolean
    !!(self =~ /^(true|t|yes|y|1)$/i)
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.14 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.13 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.12 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.11 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.10 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.9 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.8 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.7 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.6 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.5 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.4 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.3 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.2 config/initializers/string_extensions.rb