Class: Is::Command::Application

Inherits:
Object
  • Object
show all
Includes:
Mixin
Defined in:
lib/is/command.rb

Instance Attribute Summary

Attributes included from Mixin

#description, #name

Instance Method Summary collapse

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

#runObject?

Returns:

  • (Object, nil)

321
322
323
# File 'lib/is/command.rb', line 321

def run
  process *ARGV
end