123456789_123456789_123456789_123456789_123456789_

Class: Gem::PubGrub::StderrLogger

Relationships & Source Files
Inherits: Object
Defined in: lib/rubygems/vendor/pub_grub/lib/pub_grub.rb

Instance Method Summary

Instance Method Details

#debug(&block)

[ GitHub ]

  
# File 'lib/rubygems/vendor/pub_grub/lib/pub_grub.rb', line 27

def debug(&block)
  $stderr.puts "DEBUG: #{block.call}" if block
end

#error(&block)

[ GitHub ]

  
# File 'lib/rubygems/vendor/pub_grub/lib/pub_grub.rb', line 35

def error(&block)
  $stderr.puts "ERROR: #{block.call}" if block
end

#info(&block)

[ GitHub ]

  
# File 'lib/rubygems/vendor/pub_grub/lib/pub_grub.rb', line 23

def info(&block)
  $stderr.puts "INFO: #{block.call}" if block
end

#warn(&block)

[ GitHub ]

  
# File 'lib/rubygems/vendor/pub_grub/lib/pub_grub.rb', line 31

def warn(&block)
  $stderr.puts "WARN: #{block.call}" if block
end