Sha256: 79cdb92e5a34b73c36e20cb9169d7227b8cf012ef8ee719bf1e2c2ddff765af9
Contents?: true
Size: 176 Bytes
Versions: 2
Compression:
Stored size: 176 Bytes
Contents
module WannabeBool::String TRUES = %W{t true on y yes 1}.freeze def to_b TRUES.include?(self.strip.downcase) end end class String include WannabeBool::String end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wannabe_bool-0.5.0 | lib/wannabe_bool/string.rb |
wannabe_bool-0.4.0 | lib/wannabe_bool/string.rb |