Sha256: 5c711e50ef614a3e48de9d731b422354de4e4458ae2056f021c3aa97aab61f7b
Contents?: true
Size: 631 Bytes
Versions: 5
Compression:
Stored size: 631 Bytes
Contents
require 'roby/task' module Roby module Test # This task model is a simple task where +start+, +success+ and # +failed+ are pass-through controlable events. They have an +id+ # argument which is automatically set to the object's #object_id if not # explicitely given at initialization. class SimpleTask < Roby::Task argument :id def initialize(arguments = {}) # :nodoc: arguments = { :id => object_id.to_s }.merge(arguments) super(arguments) end event :start, :command => true event :success, :command => true, :terminal => true terminates end end end
Version data entries
5 entries across 5 versions & 1 rubygems