Class: BPL::Derivatives::OutputObjectDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/bpl/derivatives/output_object_decorator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



5
6
7
# File 'lib/bpl/derivatives/output_object_decorator.rb', line 5

def content
  @content
end

#original_objectObject

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