Class: BPL::Derivatives::InputObjectDecorator

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

Direct Known Subclasses

DatastreamDecorator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_or_filename) ⇒ InputObjectDecorator

Returns a new instance of InputObjectDecorator.



6
7
8
9
# File 'lib/bpl/derivatives/input_object_decorator.rb', line 6

def initialize(object_or_filename)
  self.source_path = object_or_filename if object_or_filename.is_a?(String)
  super(object_or_filename)
end

Instance Attribute Details

#source_pathObject

Returns the value of attribute source_path.



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

def source_path
  @source_path
end