Class: Scrutinizer::Ocular::MemorizedOutput
- Inherits:
-
Object
- Object
- Scrutinizer::Ocular::MemorizedOutput
- Defined in:
- lib/scrutinizer/ocular/output.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize ⇒ MemorizedOutput
constructor
A new instance of MemorizedOutput.
- #write(message) ⇒ Object
Constructor Details
#initialize ⇒ MemorizedOutput
Returns a new instance of MemorizedOutput.
12 13 14 |
# File 'lib/scrutinizer/ocular/output.rb', line 12 def initialize @output = '' end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
10 11 12 |
# File 'lib/scrutinizer/ocular/output.rb', line 10 def output @output end |
Instance Method Details
#write(message) ⇒ Object
16 17 18 |
# File 'lib/scrutinizer/ocular/output.rb', line 16 def write() @output += end |