Class: BPL::Derivatives::InputObjectDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- BPL::Derivatives::InputObjectDecorator
- Defined in:
- lib/bpl/derivatives/input_object_decorator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#source_path ⇒ Object
Returns the value of attribute source_path.
Instance Method Summary collapse
-
#initialize(object_or_filename) ⇒ InputObjectDecorator
constructor
A new instance of InputObjectDecorator.
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_path ⇒ Object
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 |