Class: Code::Object::Nothing
- Inherits:
-
Code::Object
- Object
- Code::Object
- Code::Object::Nothing
- Defined in:
- lib/code/object/nothing.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
- #inspect ⇒ Object
- #to_s ⇒ Object
Methods inherited from Code::Object
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
12 13 14 |
# File 'lib/code/object/nothing.rb', line 12 def ==(other) other.is_a?(::Code::Object::Nothing) end |
#hash ⇒ Object
17 18 19 |
# File 'lib/code/object/nothing.rb', line 17 def hash [self.class, nil].hash end |
#inspect ⇒ Object
8 9 10 |
# File 'lib/code/object/nothing.rb', line 8 def inspect "nothing" end |
#to_s ⇒ Object
4 5 6 |
# File 'lib/code/object/nothing.rb', line 4 def to_s "" end |