Sha256: a4a0a02a56fc103298ee0cd3ff58597d745ef73f057a2cadcd00a32ac904cd40

Contents?: true

Size: 744 Bytes

Versions: 35

Compression:

Stored size: 744 Bytes

Contents

module Picky
  
  module Loggers
    
    # The verbose logger outputs little information.
    #
    class Concise < Silent
      
      attr_reader :tokenized,
                  :dumped,
                  :loaded
      
      def initialize *args
        super *args
        
        reset
      end
      
      def reset
        @tokenized = false
        @dumped    = false
        @loaded    = false
      end
      
      def info text
        io.write text
      end
      
      def tokenize(*)
        progress 'T'
      end
      
      def dump(*)
        progress 'D'
      end
      
      def load(*)
        progress
      end
      
      def progress type = '.'
        io.write type
      end
      
    end
    
  end
  
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
picky-4.9.0 lib/picky/loggers/concise.rb
picky-4.8.1 lib/picky/loggers/concise.rb
picky-4.8.0 lib/picky/loggers/concise.rb
picky-4.7.0 lib/picky/loggers/concise.rb
picky-4.6.6 lib/picky/loggers/concise.rb
picky-4.6.5 lib/picky/loggers/concise.rb
picky-4.6.4 lib/picky/loggers/concise.rb
picky-4.6.3 lib/picky/loggers/concise.rb
picky-4.6.2 lib/picky/loggers/concise.rb
picky-4.6.1 lib/picky/loggers/concise.rb
picky-4.6.0 lib/picky/loggers/concise.rb
picky-4.5.12 lib/picky/loggers/concise.rb
picky-4.5.11 lib/picky/loggers/concise.rb
picky-4.5.10 lib/picky/loggers/concise.rb
picky-4.5.9 lib/picky/loggers/concise.rb
picky-4.5.8 lib/picky/loggers/concise.rb
picky-4.5.7 lib/picky/loggers/concise.rb
picky-4.5.6 lib/picky/loggers/concise.rb
picky-4.5.5 lib/picky/loggers/concise.rb
picky-4.5.4 lib/picky/loggers/concise.rb