Class: Pecorb::DefaultConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/pecorb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaultConfig

Returns a new instance of DefaultConfig.



12
13
14
15
# File 'lib/pecorb.rb', line 12

def initialize
  self.input_stream = $stdin
  self.output_stream = $stdout
end

Instance Attribute Details

#input_streamObject

Returns the value of attribute input_stream

Returns:

  • (Object)

    the current value of input_stream



11
12
13
# File 'lib/pecorb.rb', line 11

def input_stream
  @input_stream
end

#output_streamObject

Returns the value of attribute output_stream

Returns:

  • (Object)

    the current value of output_stream



11
12
13
# File 'lib/pecorb.rb', line 11

def output_stream
  @output_stream
end