Class: Code::Object::Nothing
Instance Attribute Summary
Attributes inherited from Code::Object
#raw
Class Method Summary
collapse
Instance Method Summary
collapse
#<=>, #==, 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_new, code_or_operator, #code_or_operator, code_self, #code_self, #code_to_string, code_to_string, falsy?, #falsy?, #hash, inspect, maybe, multi_fetch, #multi_fetch, repeat, sig, #sig, #to_json, to_s, truthy?, |
Constructor Details
#initialize(*_args, **_kargs, &_block) ⇒ Nothing
Returns a new instance of Nothing.
6
7
8
|
# File 'lib/code/object/nothing.rb', line 6
def initialize(*_args, **_kargs, &_block)
@raw = nil
end
|
Class Method Details
10
11
12
|
# File 'lib/code/object/nothing.rb', line 10
def self.name
"Nothing"
end
|
Instance Method Details
26
27
28
|
# File 'lib/code/object/nothing.rb', line 26
def as_json(...)
raw.as_json(...)
end
|
14
15
16
|
# File 'lib/code/object/nothing.rb', line 14
def inspect
"nothing"
end
|
18
19
20
|
# File 'lib/code/object/nothing.rb', line 18
def to_s
""
end
|
22
23
24
|
# File 'lib/code/object/nothing.rb', line 22
def truthy?
false
end
|