Class: Potter::AST::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/potter/ast/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Proxy

Returns a new instance of Proxy.



6
7
8
# File 'lib/potter/ast/proxy.rb', line 6

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



4
5
6
# File 'lib/potter/ast/proxy.rb', line 4

def node
  @node
end

Instance Method Details

#Node(o) ⇒ Object



10
# File 'lib/potter/ast/proxy.rb', line 10

def Node(o) = AST.Node(o)

#Proxy(o) ⇒ Object



11
# File 'lib/potter/ast/proxy.rb', line 11

def Proxy(o) = AST.Proxy(o)