Class: Code::Object::Nothing
- Inherits:
-
Code::Object
- Object
- Code::Object
- Code::Object::Nothing
- Defined in:
- lib/code/object/nothing.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Nothing
constructor
A new instance of Nothing.
- #inspect ⇒ Object
- #to_s ⇒ Object
- #truthy? ⇒ Boolean
Methods inherited from Code::Object
#<=>, #==, call, #call, #code_and_operator, code_and_operator, #code_different, code_different, code_equal_equal, #code_equal_equal, #code_equal_equal_equal, code_equal_equal_equal, code_exclamation_point, #code_exclamation_point, code_exclusive_range, #code_exclusive_range, code_inclusive_range, #code_inclusive_range, code_or_operator, #code_or_operator, code_self, #code_self, code_to_string, #code_to_string, #falsy?, falsy?, hash, #hash, maybe, multi_fetch, #multi_fetch, repeat, #sig, sig, to_s, truthy?, |
Constructor Details
#initialize ⇒ Nothing
Returns a new instance of Nothing.
8 9 10 |
# File 'lib/code/object/nothing.rb', line 8 def initialize @raw = nil end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
6 7 8 |
# File 'lib/code/object/nothing.rb', line 6 def raw @raw end |
Class Method Details
.name ⇒ Object
12 13 14 |
# File 'lib/code/object/nothing.rb', line 12 def self.name "Nothing" end |