Class: RBelly::Nodes::BracketAccessorNode
- Defined in:
- lib/rbelly/nodes/bracket_accessor_node.rb
Instance Attribute Summary collapse
-
#accessor ⇒ Object
readonly
Returns the value of attribute accessor.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(resolve, accessor) ⇒ BracketAccessorNode
constructor
A new instance of BracketAccessorNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(resolve, accessor) ⇒ BracketAccessorNode
Returns a new instance of BracketAccessorNode.
5 6 7 8 |
# File 'lib/rbelly/nodes/bracket_accessor_node.rb', line 5 def initialize(resolve, accessor) super(resolve) @accessor = accessor end |
Instance Attribute Details
#accessor ⇒ Object (readonly)
Returns the value of attribute accessor.
4 5 6 |
# File 'lib/rbelly/nodes/bracket_accessor_node.rb', line 4 def accessor @accessor end |