Sha256: 418033fa3aaeb53d3296bef792f173bdb877f297988d11c06c3708160591edcf

Contents?: true

Size: 342 Bytes

Versions: 25

Compression:

Stored size: 342 Bytes

Contents

module Spec
class Logger
  
  class << self
    
    def info(*args)
      log(*args)
    end
    
    def debug(*args)
      log(*args)
    end
    
    def error(*args)
      raise args[1] if args[1].kind_of?(StandardError)
    end
    
    def log(*args)
      STDOUT << args.collect(&:to_s).join(', ') + "\n"
    end
    
  end
  
end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
quandl_format-0.5.1 spec/config/logger.rb
quandl_format-0.5.0 spec/config/logger.rb
quandl_format-0.4.3 spec/config/logger.rb
quandl_format-0.4.2 spec/config/logger.rb
quandl_format-0.4.1 spec/config/logger.rb
quandl_format-0.4.0 spec/config/logger.rb
quandl_format-0.3.0 spec/config/logger.rb
quandl_format-0.2.8 spec/config/logger.rb
quandl_format-0.2.7 spec/config/logger.rb
quandl_format-0.2.6 spec/config/logger.rb
quandl_format-0.2.5 spec/config/logger.rb
quandl_format-0.2.4 spec/config/logger.rb
quandl_format-0.2.3 spec/config/logger.rb
quandl_format-0.2.2 spec/config/logger.rb
quandl_format-0.2.1 spec/config/logger.rb
quandl_format-0.2.0 spec/config/logger.rb
quandl_format-0.1.8 spec/config/logger.rb
quandl_format-0.1.7 spec/config/logger.rb
quandl_format-0.1.6 spec/config/logger.rb
quandl_format-0.1.5 spec/config/logger.rb