Class: TTK::Dumpers::Notif

Inherits:
Dumper show all
Includes:
Concrete
Defined in:
lib/ttk/dumpers/Notif.rb

Instance Method Summary collapse

Methods inherited from Dumper

#flush, #initialize

Constructor Details

This class inherits a constructor from TTK::Dumpers::Dumper

Instance Method Details

#update(*args, &block) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/ttk/dumpers/Notif.rb', line 14

def update ( *args, &block )
  msg, path, node, type = args
  a = [msg]
  a << path.last.first if msg == :new_node
  a << node unless node.nil?
  a << type unless type.nil?
  @io.puts a.to_yaml
  flush
end