Class: DRep::DRepEnvironment
- Defined in:
- lib/drep/core/drep_environment.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdin ⇒ Object
readonly
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdin, stdout, stderr, options) ⇒ DRepEnvironment
constructor
A new instance of DRepEnvironment.
Constructor Details
#initialize(stdin, stdout, stderr, options) ⇒ DRepEnvironment
Returns a new instance of DRepEnvironment.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/drep/core/drep_environment.rb', line 30 def initialize(stdin, stdout, stderr, ) if valid?(stdin, stdout, stderr) @stdin = stdin @stdout = stdout @stderr = stderr else raise('Not all standard streams are valid') end if valid?() = else raise('Options were not specified') end end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
28 29 30 |
# File 'lib/drep/core/drep_environment.rb', line 28 def end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
26 27 28 |
# File 'lib/drep/core/drep_environment.rb', line 26 def stderr @stderr end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
26 27 28 |
# File 'lib/drep/core/drep_environment.rb', line 26 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
26 27 28 |
# File 'lib/drep/core/drep_environment.rb', line 26 def stdout @stdout end |