Class: CompositorNode::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Image

Returns a new instance of Image.



5
6
7
# File 'lib/compositor_node/image.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/image.rb', line 3

def source
  @source
end

Instance Method Details

#executeObject



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

def execute
  Engine.read(@source)
end