Sha256: a88db925d4a11394e52126625b5f0a5a9acb6207aaf79b82878eea0f1a1749ef

Contents?: true

Size: 174 Bytes

Versions: 12

Compression:

Stored size: 174 Bytes

Contents

class NilClass
  def self.to_bool
    false
  end
  def to_bool
    false
  end
end

class String
  def to_bool
    return true if self.downcase == "true"
    false
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
thecore_backend_commons-3.0.6 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-3.0.5 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-3.0.4 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-3.0.3 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-3.0.0 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.4.2 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.4.1 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.4.0 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.3.10 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.3.9 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.3.8 config/initializers/thecore_backend_commons_app_archetypes.rb
thecore_backend_commons-2.3.7 config/initializers/thecore_backend_commons_app_archetypes.rb