Class: Roby::EventLogging::IOEventLogger::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/roby/event_logging/io_event_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



156
157
158
# File 'lib/roby/event_logging/io_event_logger.rb', line 156

def args
  @args
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



156
157
158
# File 'lib/roby/event_logging/io_event_logger.rb', line 156

def name
  @name
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



156
157
158
# File 'lib/roby/event_logging/io_event_logger.rb', line 156

def time
  @time
end

Instance Method Details

#pretty_print(pp) ⇒ Object



157
158
159
160
161
162
163
164
165
# File 'lib/roby/event_logging/io_event_logger.rb', line 157

def pretty_print(pp)
    pp.text "#{Roby.format_time(time)} #{name}"
    pp.nest(2) do
        args.each do |obj|
            pp.breakable
            obj.pretty_print(pp)
        end
    end
end