Class: IRB::ExtendCommand::TraceCommand

Inherits:
Nop
  • Object
show all
Defined in:
lib/tracer/irb.rb

Direct Known Subclasses

Trace, TraceCall, TraceException

Class Method Summary collapse

Class Method Details

.transform_args(args) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/tracer/irb.rb', line 42

def transform_args(args)
  # Return a string literal as is for backward compatibility
  if args.empty? || string_literal?(args)
    args
  else # Otherwise, consider the input as a String for convenience
    args.strip.dump
  end
end