Class: IRB::Command::Sys

Inherits:
Base
  • Object
show all
Defined in:
lib/irbtools/commands/sys.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.transform_args(args) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/irbtools/commands/sys.rb', line 10

def transform_args(args)
  if args.empty? || string_literal?(args)
    args
  else
    args.strip.dump
  end
end

Instance Method Details

#execute(*args) ⇒ Object



19
20
21
# File 'lib/irbtools/commands/sys.rb', line 19

def execute(*args)
  system(*args)
end