Class: Duby::AST::BlockArgument

Inherits:
Argument show all
Includes:
Named
Defined in:
lib/duby/ast/method.rb

Instance Attribute Summary

Attributes included from Named

#name

Attributes included from Typed

#type

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods included from Named

#to_s

Methods inherited from Node

#[], #each, #expr?, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s

Constructor Details

#initialize(parent, line_number, name) ⇒ BlockArgument

Returns a new instance of BlockArgument.



98
99
100
101
102
# File 'lib/duby/ast/method.rb', line 98

def initialize(parent, line_number, name)
  super(parent, line_number)

  @name = name
end