class TPPlus::Nodes::VisionRegisterNode

Attributes

comment[RW]
id[R]

Public Class Methods

new(id) click to toggle source
# File lib/tp_plus/nodes/vision_register_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/vision_register_node.rb, line 11
def comment_string
  return "" if @comment == ""

  ":#{@comment}"
end
eval(context,options={}) click to toggle source
# File lib/tp_plus/nodes/vision_register_node.rb, line 17
def eval(context,options={})
  "VR[#{@id}#{comment_string}]"
end