Method: BaseScript#initialize

Defined in:
lib/base_script.rb

#initialize(argv, stdin: $stdin, stdout: $stdout, stderr: $stderr) ⇒ BaseScript

Returns a new instance of BaseScript.



13
14
15
16
17
18
19
20
21
22
# File 'lib/base_script.rb', line 13

def initialize(argv, stdin: $stdin, stdout: $stdout, stderr: $stderr)
  @argv = argv

  @input = stdin
  @output = stdout
  @error_output = stderr
  sync_io!

  @indentation = 0
end