Class: RubyLoader::DummyLogger
- Inherits:
-
Object
- Object
- RubyLoader::DummyLogger
- Defined in:
- lib/rubyloader.rb
Instance Method Summary collapse
- #null_out(progname = nil, &b) ⇒ Object (also: #log, #debug, #warn)
- #out(progname = nil, &b) ⇒ Object (also: #error, #fatal)
Instance Method Details
#null_out(progname = nil, &b) ⇒ Object Also known as: log, debug, warn
45 46 |
# File 'lib/rubyloader.rb', line 45 def null_out(progname=nil, &b) end |
#out(progname = nil, &b) ⇒ Object Also known as: error, fatal
48 49 50 51 52 53 54 55 |
# File 'lib/rubyloader.rb', line 48 def out(progname=nil, &b) if b puts "#{progname} -- #{b()}" else puts b() end true end |