class Orocos::RubyTasks::StubTaskContext::Operation
Attributes
name[R]
task_context[R]
Public Class Methods
new(name, task_context)
click to toggle source
# File lib/orocos/ruby_tasks/stub_task_context.rb, line 65 def initialize(name, task_context) @name, @task_context = name, task_context end
Public Instance Methods
callop(*args)
click to toggle source
# File lib/orocos/ruby_tasks/stub_task_context.rb, line 69 def callop(*args) task_context.send(name, *args) end
sendop(*args)
click to toggle source
# File lib/orocos/ruby_tasks/stub_task_context.rb, line 73 def sendop(*args) begin result = callop(*args) rescue Exception => e end SendHandle.new(result, e) end