Class: Pecorb::DefaultConfig
- Inherits:
-
Struct
- Object
- Struct
- Pecorb::DefaultConfig
- Defined in:
- lib/pecorb.rb
Instance Attribute Summary collapse
-
#input_stream ⇒ Object
Returns the value of attribute input_stream.
-
#output_stream ⇒ Object
Returns the value of attribute output_stream.
Instance Method Summary collapse
-
#initialize ⇒ DefaultConfig
constructor
A new instance of DefaultConfig.
Constructor Details
#initialize ⇒ DefaultConfig
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_stream ⇒ Object
Returns the value of attribute input_stream
11 12 13 |
# File 'lib/pecorb.rb', line 11 def input_stream @input_stream end |
#output_stream ⇒ Object
Returns the value of attribute output_stream
11 12 13 |
# File 'lib/pecorb.rb', line 11 def output_stream @output_stream end |