Class: Code::Object::Nothing

Inherits:
Code::Object show all
Defined in:
lib/code/object/nothing.rb

Constant Summary

Constants inherited from Code::Object

NUMBER_CLASSES

Instance Attribute Summary

Attributes inherited from Code::Object

#raw

Instance Method Summary collapse

Methods inherited from Code::Object

#<=>, #==, #as_json, as_json, call, #call, code_and_operator, #code_and_operator, #code_as_json, code_as_json, 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_json, #code_to_json, falsy?, #falsy?, #hash, inspect, maybe, multi_fetch, #multi_fetch, nothing?, repeat, sig, #sig, #succ, #to_code, to_json, #to_json, to_s, truthy?, |

Constructor Details

#initialize(*_args, **_kargs) ⇒ Nothing

Returns a new instance of Nothing.



6
7
8
# File 'lib/code/object/nothing.rb', line 6

def initialize(*_args, **_kargs, &)
  @raw = nil
end

Instance Method Details

#nothing?Boolean

Returns:



14
15
16
# File 'lib/code/object/nothing.rb', line 14

def nothing?
  true
end

#truthy?Boolean

Returns:



10
11
12
# File 'lib/code/object/nothing.rb', line 10

def truthy?
  false
end