Method: Ncio::App#initialize

Defined in:
lib/ncio/app.rb

#initialize(argv = ARGV.dup, env = ENV.to_hash) ⇒ Ncio::App

Returns the application instance.

Parameters:

  • argv (Array) (defaults to: ARGV.dup)

    The argument vector, passed to the option parser.

  • env (Hash) (defaults to: ENV.to_hash)

    The environment hash, passed to the option parser to supply defaults not specified on the command line argument vector.



31
32
33
34
35
# File 'lib/ncio/app.rb', line 31

def initialize(argv = ARGV.dup, env = ENV.to_hash)
  @argv = argv
  @env = env
  reset!
end