Class: Birdel::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/birdel/cli.rb

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/birdel/cli.rb', line 5

def self.start(args)
  method_name = args[0]
  method_param = args[1]
  if method_name == "synth"
    Birdel::Synth.roll
  elsif method_name == "gcom"
    Birdel::Com.roll(method_param)
  elsif method_name == "gent"
    Birdel::Map.roll(method_param)
  else
    puts "Wrong param".red
  end
end