Class: TPPlus::Nodes::JPOSNode

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

Instance Method Summary collapse

Constructor Details

#initialize(var) ⇒ JPOSNode

Returns a new instance of JPOSNode.



4
5
6
# File 'lib/tp_plus/nodes/jpos_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/jpos_node.rb', line 8

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