Class: Compositor::Renderer::Base
- Inherits:
-
Object
- Object
- Compositor::Renderer::Base
- Defined in:
- lib/compositor/renderer/base.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#composite ⇒ Object
readonly
Returns the value of attribute composite.
Instance Method Summary collapse
-
#initialize(composite, collection) ⇒ Base
constructor
A new instance of Base.
- #render ⇒ Object
Constructor Details
#initialize(composite, collection) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/compositor/renderer/base.rb', line 6 def initialize(composite, collection) @composite = composite @collection = collection end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'lib/compositor/renderer/base.rb', line 4 def collection @collection end |
#composite ⇒ Object (readonly)
Returns the value of attribute composite.
4 5 6 |
# File 'lib/compositor/renderer/base.rb', line 4 def composite @composite end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/compositor/renderer/base.rb', line 11 def render raise NoMethodError.new "Define render() method in subclasses!" end |