Class: Duby::AST::RestArgument
- Defined in:
- lib/duby/ast/method.rb
Instance Attribute Summary
Attributes included from Named
Attributes included from Typed
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
- #infer(typer) ⇒ Object
-
#initialize(parent, line_number, name) ⇒ RestArgument
constructor
A new instance of RestArgument.
Methods included from Scoped
Methods included from Named
Methods inherited from Argument
Methods inherited from Node
#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize_copy, #insert, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s
Constructor Details
#initialize(parent, line_number, name) ⇒ RestArgument
Returns a new instance of RestArgument.
85 86 87 88 89 |
# File 'lib/duby/ast/method.rb', line 85 def initialize(parent, line_number, name) super(parent, line_number) @name = name end |
Instance Method Details
#infer(typer) ⇒ Object
91 92 93 94 |
# File 'lib/duby/ast/method.rb', line 91 def infer(typer) scope.static_scope << name super end |