Class: Andrey::Command
- Inherits:
-
Object
- Object
- Andrey::Command
- Defined in:
- lib/andrey/command.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.[](command) ⇒ Object
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/andrey/command.rb', line 47 def self.[](command) case command when /^gen/i Generate.new when /^ana/i Analyze.new else raise "unknown command #{ command }" end end |