Class: RKelly::Nodes::DotAccessorNode

Inherits:
Node
  • Object
show all
Defined in:
lib/rkelly/nodes/dot_accessor_node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#comments, #filename, #range, #value

Instance Method Summary collapse

Methods inherited from Node

#==, #===, #each, #line, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp

Methods included from Visitable

#accept, included

Constructor Details

#initialize(resolve, accessor) ⇒ DotAccessorNode

Returns a new instance of DotAccessorNode.



5
6
7
8
# File 'lib/rkelly/nodes/dot_accessor_node.rb', line 5

def initialize(resolve, accessor)
  super(resolve)
  @accessor = accessor
end

Instance Attribute Details

#accessorObject (readonly)

Returns the value of attribute accessor.



4
5
6
# File 'lib/rkelly/nodes/dot_accessor_node.rb', line 4

def accessor
  @accessor
end