Method: CommonLib::Object#false?
- Defined in:
- lib/common_lib/ruby/object.rb
#false? ⇒ Boolean
looking for an explicit false (not nil)
47 48 49 50 |
# File 'lib/common_lib/ruby/object.rb', line 47 def false? return [false, 'false', 0, '0', 'f'].include?( ( self.is_a?(String) ) ? self.downcase : self ) end |