Class: TTYCoke::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/ttycoke/run.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv = {}) ⇒ Run

Returns a new instance of Run.



4
5
6
7
8
9
10
# File 'lib/ttycoke/run.rb', line 4

def initialize argv={}
  log_rescue(self, __method__, caller) {
    @argv     = argv
    @prog     = TTYCoke::Config.new.find_program(@argv.fetch(0))
  }
  start!
end