Class: Roby::Coordination::Script::Models::PollUntil
- Defined in:
- lib/roby/coordination/script.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event, block) ⇒ PollUntil
constructor
A new instance of PollUntil.
- #new(script) ⇒ Object
Constructor Details
#initialize(event, block) ⇒ PollUntil
Returns a new instance of PollUntil.
30 31 32 |
# File 'lib/roby/coordination/script.rb', line 30 def initialize(event, block) @event, @block = event, block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
29 30 31 |
# File 'lib/roby/coordination/script.rb', line 29 def block @block end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
29 30 31 |
# File 'lib/roby/coordination/script.rb', line 29 def event @event end |
Instance Method Details
#new(script) ⇒ Object
34 35 36 |
# File 'lib/roby/coordination/script.rb', line 34 def new(script) Script::PollUntil.new(script.root_task, script.instance_for(event), block) end |