| Class | Uttk::Dumpers::BasicColor |
| In: |
lib/uttk/dumpers/BasicColor.rb
|
| Parent: | Dumper |
# File lib/uttk/dumpers/BasicColor.rb, line 14 def initialize ( *a, &b ) super raise "HighLine not available" unless defined? HighLine @h = HighLine.new(nil, self) end
# File lib/uttk/dumpers/BasicColor.rb, line 20 def update ( *a, &b ) super msg, path, node, options = a path = Logger::Path.new(path) unless path.nil? @h.say "#{@h.color msg.inspect.ljust(10), :red} " + "#{@h.color path.inspect, :green} " + "#{@h.color node.inspect, :magenta} " + "#{@h.color options.inspect, :yellow} " + "<%=color 'block_given: #{not b.nil?}', :cyan %>" end