Class: Melbourne::AST::HashLiteral
- Defined in:
- lib/melbourne/ast/literals.rb
Overview
An hash literal as in:
{ :a => :b }
Instance Attribute Summary collapse
-
#array ⇒ Object
The actual values in the hash literal.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, array) ⇒ HashLiteral
constructor
A new instance of HashLiteral.
Methods inherited from Node
Constructor Details
#initialize(line, array) ⇒ HashLiteral
Returns a new instance of HashLiteral.
73 74 75 76 |
# File 'lib/melbourne/ast/literals.rb', line 73 def initialize(line, array) @line = line @array = array end |
Instance Attribute Details
#array ⇒ Object
The actual values in the hash literal
71 72 73 |
# File 'lib/melbourne/ast/literals.rb', line 71 def array @array end |