lib/imgurr/command.rb
# Public: executes a command.
#
# args    - The actual commands to operate on. Can be as few as zero
#           arguments or as many as three.
executes a command.
args    - The actual commands to operate on.
executes a command . args - The actual commands to operate on .
def execute(*args)
        command = args.shift
        major   = args.shift
        minor   = args.empty? ? nil : args.join(' ')
        return help unless command
        parse_options
        delegate(command, major, minor)
      end
def execute ( * args ) command = args . shift major = args . shift minor = args . empty? ? nil : args . join ( ' ' ) return help unless command parse_options delegate ( command , major , minor ) end
Public: executes a command.
Public : executes a command .
args
<not_specific>