Class: Roby::Interface::V2::Protocol::TaskEventGenerator
- Defined in:
- lib/roby/interface/v2/protocol.rb
Instance Attribute Summary collapse
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
Instance Attribute Details
#symbol ⇒ Object
Returns the value of attribute symbol
100 101 102 |
# File 'lib/roby/interface/v2/protocol.rb', line 100 def symbol @symbol end |
#task ⇒ Object
Returns the value of attribute task
100 101 102 |
# File 'lib/roby/interface/v2/protocol.rb', line 100 def task @task end |
Instance Method Details
#pretty_print(pp) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/roby/interface/v2/protocol.rb', line 101 def pretty_print(pp) pp.text "event '#{symbol}' of" pp.nest(2) do pp.breakable task.pretty_print(pp) end end |
#to_s ⇒ Object
109 110 111 |
# File 'lib/roby/interface/v2/protocol.rb', line 109 def to_s "#{task}/#{symbol}" end |