Class: TPPlus::Nodes::LPOSNode

Inherits:
Object
  • Object
show all
Defined in:
lib/tp_plus/nodes/lpos_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(var) ⇒ LPOSNode

Returns a new instance of LPOSNode.



4
5
6
# File 'lib/tp_plus/nodes/lpos_node.rb', line 4

def initialize(var)
  @var = var
end

Instance Method Details

#eval(context, options = {}) ⇒ Object



8
9
10
# File 'lib/tp_plus/nodes/lpos_node.rb', line 8

def eval(context, options={})
  "#{@var.eval(context, options)}=LPOS"
end