Sha256: 4c1ed30c607d4630cf856ce9e1ca8e15733bc4bdde409103e65925d6f634bae2
Contents?: true
Size: 1004 Bytes
Versions: 6
Compression:
Stored size: 1004 Bytes
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2005 Uttk Team. All rights reserved. # License:: LGPL # Revision:: $Id: /w/fey/uttk/trunk/lib/uttk/dumpers/BasicColor.rb 21970 2006-02-19T22:15:36.271512Z pouillar $ module Uttk module Dumpers class BasicColor < Dumper include Concrete def initialize ( *a, &b ) super raise "HighLine not available" unless defined? HighLine @h = HighLine.new(nil, self) end 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 end # class BasicColor end # module Dumpers end # module Uttk
Version data entries
6 entries across 6 versions & 1 rubygems