Class: Melbourne::AST::BlockArgument
- Includes:
- LocalVariable
- Defined in:
- lib/melbourne/ast/definitions.rb
Overview
A block argument as in:
def method(&block)
end
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the block argument.
Attributes included from LocalVariable
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name) ⇒ BlockArgument
constructor
A new instance of BlockArgument.
Methods inherited from Node
Constructor Details
#initialize(line, name) ⇒ BlockArgument
Returns a new instance of BlockArgument.
286 287 288 289 |
# File 'lib/melbourne/ast/definitions.rb', line 286 def initialize(line, name) @line = line @name = name end |
Instance Attribute Details
#name ⇒ Object
The name of the block argument
284 285 286 |
# File 'lib/melbourne/ast/definitions.rb', line 284 def name @name end |