Class: Madness::CommandLine
- Inherits:
-
Object
- Object
- Madness::CommandLine
- Includes:
- Colsole, Singleton
- Defined in:
- lib/madness/command_line.rb
Instance Method Summary collapse
- #execute(argv = []) ⇒ Object
-
#initialize ⇒ CommandLine
constructor
A new instance of CommandLine.
Constructor Details
#initialize ⇒ CommandLine
Returns a new instance of CommandLine.
6 7 |
# File 'lib/madness/command_line.rb', line 6 def initialize end |
Instance Method Details
#execute(argv = []) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/madness/command_line.rb', line 9 def execute(argv=[]) if argv.empty? launch_server else argv end end |