Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/ext.rb
Instance Method Summary collapse
- #error(s) ⇒ Object
- #error!(s) ⇒ Object
- #log(s = '') ⇒ Object
- #log!(s = '') ⇒ Object
- #tap {|_self| ... } ⇒ Object
- #verbose ⇒ Object
Instance Method Details
#error(s) ⇒ Object
33 |
# File 'lib/ext.rb', line 33 def error(s) $stderr.puts s end |
#log(s = '') ⇒ Object
31 |
# File 'lib/ext.rb', line 31 def log(s = '') puts "* #{s}" if $verbose end |
#log!(s = '') ⇒ Object
32 |
# File 'lib/ext.rb', line 32 def log!(s = '') puts "* #{s}" end |
#verbose ⇒ Object
19 20 21 22 23 24 |
# File 'lib/ext.rb', line 19 def verbose $verbose = true yield ensure $verbose = false end |