Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/ethereum/core_ext/object/truth.rb
Instance Method Summary collapse
Instance Method Details
#false? ⇒ Boolean
8 9 10 |
# File 'lib/ethereum/core_ext/object/truth.rb', line 8 def false? respond_to?(:empty?) ? empty? : !self end |
#true? ⇒ Boolean
4 5 6 |
# File 'lib/ethereum/core_ext/object/truth.rb', line 4 def true? !false? end |