Class: Compositor::Renderer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/compositor/renderer/base.rb

Direct Known Subclasses

Iterator, Merged

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#collectionObject (readonly)

Returns the value of attribute collection.



4
5
6
# File 'lib/compositor/renderer/base.rb', line 4

def collection
  @collection
end

#compositeObject (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

#renderObject



11
12
13
# File 'lib/compositor/renderer/base.rb', line 11

def render
  raise NoMethodError.new "Define render() method in subclasses!"
end