Class: Roby::EventLogging::IOEventLogger::Event
- Defined in:
- lib/roby/event_logging/io_event_logger.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#name ⇒ Object
Returns the value of attribute name.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
156 157 158 |
# File 'lib/roby/event_logging/io_event_logger.rb', line 156 def args @args end |
#name ⇒ Object
Returns the value of attribute name
156 157 158 |
# File 'lib/roby/event_logging/io_event_logger.rb', line 156 def name @name end |
#time ⇒ Object
Returns the value of attribute 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 |