Class: Is::Command::Application
- Inherits:
-
Object
- Object
- Is::Command::Application
- Includes:
- Mixin
- Defined in:
- lib/is/command.rb
Instance Attribute Summary
Attributes included from Mixin
Instance Method Summary collapse
-
#initialize(name = nil, *description, &block) ⇒ Application
constructor
A new instance of Application.
- #run ⇒ Object?
Methods included from Mixin
#[], #action, #command, #commons, #default, #each, #fullname, #help, #key, messages, #parse, #process, #synonym, #to_proc
Constructor Details
#initialize(name = nil, *description, &block) ⇒ Application
Returns a new instance of Application.
312 313 314 315 316 317 318 |
# File 'lib/is/command.rb', line 312 def initialize name = nil, *description, &block if name @name = name.intern end @description = description instance_eval &block end |
Instance Method Details
#run ⇒ Object?
321 322 323 |
# File 'lib/is/command.rb', line 321 def run process *ARGV end |