Method: Rzo::App#initialize

Defined in:
lib/rzo/app.rb

#initialize(argv = ARGV.dup, env = ENV.to_hash, stdout = $stdout, stderr = $stderr) ⇒ 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.



43
44
45
46
47
48
49
# File 'lib/rzo/app.rb', line 43

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