class TPPlus::Nodes::NumregNode
Attributes
comment[RW]
id[R]
Public Class Methods
new(id)
click to toggle source
# File lib/tp_plus/nodes/numreg_node.rb, line 6 def initialize(id) @id = id @comment = "" end
Public Instance Methods
comment_string()
click to toggle source
# File lib/tp_plus/nodes/numreg_node.rb, line 15 def comment_string return "" if @comment == "" ":#{@comment}" end
eval(context,options={})
click to toggle source
# File lib/tp_plus/nodes/numreg_node.rb, line 21 def eval(context,options={}) "R[#{@id}#{comment_string}]" end
requires_mixed_logic?(context)
click to toggle source
# File lib/tp_plus/nodes/numreg_node.rb, line 11 def requires_mixed_logic?(context) false end