class Roby::Coordination::Models::Script::Emit
Script
element that implements {Script#emit}
Attributes
event[R]
@return [Event] the event that should be emitted
Public Class Methods
new(event)
click to toggle source
# File lib/roby/coordination/models/script.rb, line 125 def initialize(event) @event = event end
Public Instance Methods
execute(script)
click to toggle source
# File lib/roby/coordination/models/script.rb, line 133 def execute(script) event.resolve.emit true end
new(script)
click to toggle source
# File lib/roby/coordination/models/script.rb, line 129 def new(script) Emit.new(script.instance_for(event)) end
to_s()
click to toggle source
# File lib/roby/coordination/models/script.rb, line 138 def to_s; "emit(#{event})" end