class Crystal::Block
inherits Crystal::ASTNode
¶
A code block.
'do' [ '|' arg [ ',' arg ]* '|' ]
body
'end'
| '{' [ '|' arg [ ',' arg ]* '|' ] body '}'
Class methods¶
Methods¶
#==(other : self)
¶
(other : self)
Returns true
if this reference is the same as other. Invokes same?
.
#hash(hasher)
¶
(hasher)
#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)
¶
(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)