Class: Podrb::Commands::BaseRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/podrb/commands/base_runner.rb

Class Method Summary collapse

Class Method Details

.call(*args) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/podrb/commands/base_runner.rb', line 6

def self.call(*args)
  command = new
  if command.method(:call).parameters.empty?
    command.call
  else
    command.call(*args)
  end
end