class Takoyaki::Runner
Attributes
args[R]
Public Class Methods
new(args = [])
click to toggle source
# File lib/takoyaki/runner.rb, line 12 def initialize(args = []) @args = args end
Public Instance Methods
command()
click to toggle source
# File lib/takoyaki/runner.rb, line 25 def command args.first end
run()
click to toggle source
# File lib/takoyaki/runner.rb, line 16 def run case command when "activities" Commands::Activities.new.execute when "reviews" Commands::Reviews.new(*args[1..-1]).execute end end