class TPPlus::Nodes::TimerNode

Attributes

comment[RW]
id[R]

Public Class Methods

new(id) click to toggle source
# File lib/tp_plus/nodes/timer_node.rb, line 6
def initialize(id)
  @id = id
  @comment = ""
end

Public Instance Methods

eval(context, options={}) click to toggle source
# File lib/tp_plus/nodes/timer_node.rb, line 11
def eval(context, options={})
  "TIMER[#{@id}]" # FANUC does not like timer comments
end