Class: TPPlus::Nodes::JPOSNode
- Inherits:
-
Object
- Object
- TPPlus::Nodes::JPOSNode
- Defined in:
- lib/tp_plus/nodes/jpos_node.rb
Instance Method Summary collapse
- #eval(context, options = {}) ⇒ Object
-
#initialize(var) ⇒ JPOSNode
constructor
A new instance of JPOSNode.
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, ={}) "#{@var.eval(context, options)}=JPOS" end |