Class: Roby::Interface::V2::Protocol::TaskEventGenerator

Inherits:
Struct
  • Object
show all
Defined in:
lib/roby/interface/v2/protocol.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#symbolObject

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



100
101
102
# File 'lib/roby/interface/v2/protocol.rb', line 100

def symbol
  @symbol
end

#taskObject

Returns the value of attribute task

Returns:

  • (Object)

    the current value of 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_sObject



109
110
111
# File 'lib/roby/interface/v2/protocol.rb', line 109

def to_s
    "#{task}/#{symbol}"
end