Class: Baf::Env

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/baf/env.rb

Instance Method Summary collapse

Constructor Details

#initialize(input: $stdin, output: $stdout, output_error: $stderr) ⇒ Env

Returns a new instance of Env.



10
11
12
13
14
# File 'lib/baf/env.rb', line 10

def initialize input: $stdin, output: $stdout, output_error: $stderr
  @input = input
  @output = output
  @output_error = output_error
end

Instance Method Details

#sync_outputObject



16
17
18
# File 'lib/baf/env.rb', line 16

def sync_output
  output.sync = true
end