Class: CompositorNode::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/compositor_node/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Output

Returns a new instance of Output.



5
6
7
# File 'lib/compositor_node/output.rb', line 5

def initialize(options = {})
  @source = options[:source]
end

Instance Attribute Details

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/compositor_node/output.rb', line 3

def source
  @source
end

Instance Method Details

#write(path) ⇒ Object



9
10
11
# File 'lib/compositor_node/output.rb', line 9

def write(path)
  Engine.write(@source.execute, path)
end