Class: String
Instance Method Summary collapse
Instance Method Details
#falsey? ⇒ Boolean
43 44 45 |
# File 'lib/true_string.rb', line 43 def falsey? TrueString::TRUTH_TABLE[self] == false end |
#truthy? ⇒ Boolean
39 40 41 |
# File 'lib/true_string.rb', line 39 def truthy? !!TrueString::TRUTH_TABLE[self] end |