Class: RDvdSlideshow::Slideshow

Inherits:
RProgram::Program
  • Object
show all
Defined in:
lib/rdvd-slideshow/slideshow.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Slideshow

Returns a new instance of Slideshow.



9
10
11
# File 'lib/rdvd-slideshow/slideshow.rb', line 9

def initialize(path)
  super(path)
end

Class Method Details

.build(options = {}, &block) ⇒ Object

Launches the building of the slideshow. Options and/or block can be passed to configure the slideshow. Example: Slideshow.build(:output_dir=>“output”,:input_file=>“input.txt”)

or with a block: Slideshow.build do |show|

show.output_dir = "output"
show.write_input do |input|
 input.image "toto.jpg", "0.5"
end

end



27
28
29
# File 'lib/rdvd-slideshow/slideshow.rb', line 27

def self.build(options={},&block)
  self.find.build(options,&block)
end

Instance Method Details

#build(options = {}, &block) ⇒ Object

Instance method for building slideshow



34
35
36
# File 'lib/rdvd-slideshow/slideshow.rb', line 34

def build(options={},&block)
  run_task(SlideshowTask.new(options,&block))
end