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.61 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.60 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.59 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.58 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.54 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.52 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.51 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.49 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.48 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.47 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.46 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.45 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.44 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.43 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.42 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.41 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.40 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.39 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.38 config/initializers/string_extensions.rb
activeadmin-selleo-cms-0.0.37 config/initializers/string_extensions.rb