class Roby::DelayedArgumentFromState
Placeholder that can be used to assign an argument from a state value, reading the attribute only when the task is started
This will usually not be used directly. One should use Task.from_state instead
It differs from DelayedArgumentFromObject
as it always filters out unassigned state values
Public Class Methods
new(state_object = State, weak = true)
click to toggle source
Calls superclass method
Roby::DelayedArgumentFromObject::new
# File lib/roby/task_arguments.rb, line 367 def initialize(state_object = State, weak = true) super(state_object, weak) end
Public Instance Methods
evaluate_delayed_argument(task)
click to toggle source
Calls superclass method
Roby::DelayedArgumentFromObject#evaluate_delayed_argument
# File lib/roby/task_arguments.rb, line 371 def evaluate_delayed_argument(task) result = super if result.kind_of?(OpenStruct) && !result.attached? throw :no_value end result end