Class: MethodSig::NodeOptionalArgument
- Inherits:
-
OptionalArgument
- Object
- Argument
- OptionalArgument
- MethodSig::NodeOptionalArgument
- Defined in:
- lib/decompiler/method/signature/argument.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#node_for_default ⇒ Object
readonly
Returns the value of attribute node_for_default.
Attributes inherited from Argument
Instance Method Summary collapse
-
#initialize(name, default, node_for_default, is_rest, is_block) ⇒ NodeOptionalArgument
constructor
A new instance of NodeOptionalArgument.
Methods inherited from OptionalArgument
Methods inherited from Argument
#block?, #optional?, #required?, #rest?, #to_s
Constructor Details
#initialize(name, default, node_for_default, is_rest, is_block) ⇒ NodeOptionalArgument
Returns a new instance of NodeOptionalArgument.
57 58 59 60 61 |
# File 'lib/decompiler/method/signature/argument.rb', line 57 def initialize(name, default, node_for_default, is_rest, is_block) super(name, is_rest, is_block) @default = default @node_for_default = node_for_default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
55 56 57 |
# File 'lib/decompiler/method/signature/argument.rb', line 55 def default @default end |
#node_for_default ⇒ Object (readonly)
Returns the value of attribute node_for_default.
54 55 56 |
# File 'lib/decompiler/method/signature/argument.rb', line 54 def node_for_default @node_for_default end |