Method: Object#ctxputs
- Defined in:
- lib/ctx.rb
#ctxputs(*args) ⇒ Object
14 15 16 17 18 |
# File 'lib/ctx.rb', line 14 def ctxputs(*args) ctxs = @@contexts.map(&:name)[1..-1].reverse.join(":") ctxs = "[CTX #{ctxs}] " unless ctxs.empty? puts "#{ctxs}#{args.map(&:to_s).join(', ')}" end |