Sha256: 70f49d11d1efc524fd303686fc3569f62d5d7c7bd94b5bafe9b35c786bfb9688
Contents?: true
Size: 263 Bytes
Versions: 3
Compression:
Stored size: 263 Bytes
Contents
module MontageRails class Boolean def self.is_me?(value) return true if value.is_a?(TrueClass) return true if value.is_a?(FalseClass) return true if ["true", "false", "1", "0"].include?(value.to_s.downcase) false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
montage_rails-1.0.0 | lib/montage_rails/boolean.rb |
montage_rails-0.7.4 | lib/montage_rails/boolean.rb |
montage_rails-0.7.3 | lib/montage_rails/boolean.rb |