Class: Dorian::Eval::Return

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stdout: "", stderr: "", returned: nil) ⇒ Return

Returns a new instance of Return.



9
10
11
# File 'lib/dorian/eval.rb', line 9

def initialize(stdout: "", stderr: "", returned: nil)
  super
end

Instance Attribute Details

#returnedObject

Returns the value of attribute returned

Returns:

  • (Object)

    the current value of returned



7
8
9
# File 'lib/dorian/eval.rb', line 7

def returned
  @returned
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



7
8
9
# File 'lib/dorian/eval.rb', line 7

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



7
8
9
# File 'lib/dorian/eval.rb', line 7

def stdout
  @stdout
end