Top Level Namespace
Defined Under Namespace
Modules: CkuruTools Classes: String, Time
Instance Method Summary collapse
- #chatty_exec(level, name) ⇒ Object
-
#msg_exec(msg) ⇒ Object
module MlImportUtils.
- #printmsg(msg, newline = true) ⇒ Object
Instance Method Details
#chatty_exec(level, name) ⇒ Object
492 493 494 495 496 |
# File 'lib/ckuru-tools.rb', line 492 def chatty_exec(level,name) ret = yield ckebug level, "#{name} is #{ret}" ret end |
#msg_exec(msg) ⇒ Object
module MlImportUtils
484 485 486 487 488 489 490 |
# File 'lib/ckuru-tools.rb', line 484 def msg_exec(msg) printmsg("#{msg} ... ",false) t1 = Time.new ret = yield puts "done (#{Time.new - t1})" ret end |
#printmsg(msg, newline = true) ⇒ Object
477 478 479 480 |
# File 'lib/ckuru-tools.rb', line 477 def printmsg(msg,newline=true) print "#{Time.new.ckuru_time_string}: #{msg}" puts if newline end |