Class: MethodSig::NodeOptionalArgument

Inherits:
OptionalArgument show all
Defined in:
lib/decompiler/method/signature/argument.rb

Instance Attribute Summary collapse

Attributes inherited from Argument

#name

Instance Method Summary collapse

Methods inherited from OptionalArgument

#optional?

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

#defaultObject (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_defaultObject (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