Class: BPL::Derivatives::OutputObjectDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- BPL::Derivatives::OutputObjectDecorator
- Defined in:
- lib/bpl/derivatives/output_object_decorator.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#original_object ⇒ Object
Returns the value of attribute original_object.
Instance Method Summary collapse
-
#initialize(content, original_object = nil) ⇒ OutputObjectDecorator
constructor
A new instance of OutputObjectDecorator.
Constructor Details
#initialize(content, original_object = nil) ⇒ OutputObjectDecorator
Returns a new instance of OutputObjectDecorator.
6 7 8 9 10 |
# File 'lib/bpl/derivatives/output_object_decorator.rb', line 6 def initialize(content, original_object = nil) super(content) self.content = StringIO.new(content) self.original_object = original_object end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
5 6 7 |
# File 'lib/bpl/derivatives/output_object_decorator.rb', line 5 def content @content end |
#original_object ⇒ Object
Returns the value of attribute original_object.
5 6 7 |
# File 'lib/bpl/derivatives/output_object_decorator.rb', line 5 def original_object @original_object end |