class Orocos::RubyTasks::StubTaskContext::SendHandle
Attributes
error[R]
Error raised by the stub method
result[R]
Value returned by the stub method
Public Class Methods
new(result, error)
click to toggle source
# File lib/orocos/ruby_tasks/stub_task_context.rb, line 44 def initialize(result, error) @result, @error = Array(result), error end
Public Instance Methods
collect()
click to toggle source
# File lib/orocos/ruby_tasks/stub_task_context.rb, line 48 def collect if error return Orocos::SEND_FAILURE elsif result.empty? return Orocos::SEND_SUCCESS else return [Orocos::SEND_SUCCESS, *result] end end
collect_if_done()
click to toggle source
# File lib/orocos/ruby_tasks/stub_task_context.rb, line 58 def collect_if_done; collect end