Top Level Namespace
Defined Under Namespace
Modules: Open3, Textpow, Tk, VER Classes: FuzzyFileFinder, PP, Pathname, Regexp, SizedArray, Window
Instance Method Summary collapse
-
#l(arg = nil, *args) ⇒ Object
Small helper method that equivalent to Kernel#p but writes to log.
Instance Method Details
#l(arg = nil, *args) ⇒ Object
Small helper method that equivalent to Kernel#p but writes to log. Please use this for debugging, log is at /tmp/ver/log/all.log.
Returns the arguments given just like Kernel#p.
Logger takes care of calling #inspect on everything that’s not a String. We use debug level for this.
33 34 35 36 37 38 39 40 41 |
# File 'lib/ver.rb', line 33 def l(arg = nil, *args) if args.empty? VER.log.debug(arg) arg else VER.log.debug(arg, *args) [arg, *args] end end |