Class: Code::Object::Argument
- Inherits:
-
Code::Object
- Object
- Code::Object
- Code::Object::Argument
- Defined in:
- lib/code/object/argument.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Code::Object
Instance Method Summary collapse
-
#initialize(*args, **_kargs, &_block) ⇒ Argument
constructor
A new instance of Argument.
- #keyword? ⇒ Boolean
- #name_value ⇒ Object
- #regular? ⇒ Boolean
Methods inherited from Code::Object
#<=>, #==, #as_json, #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, #inspect, maybe, multi_fetch, #multi_fetch, name, repeat, sig, #sig, #to_json, #to_s, to_s, truthy?, #truthy?, |
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/code/object/argument.rb', line 6 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/code/object/argument.rb', line 6 def value @value end |