Class: RDvdSlideshow::Slideshow
- Inherits:
-
RProgram::Program
- Object
- RProgram::Program
- RDvdSlideshow::Slideshow
- Defined in:
- lib/rdvd-slideshow/slideshow.rb
Class Method Summary collapse
-
.build(options = {}, &block) ⇒ Object
Launches the building of the slideshow.
Instance Method Summary collapse
-
#build(options = {}, &block) ⇒ Object
Instance method for building slideshow.
-
#initialize(path) ⇒ Slideshow
constructor
A new instance of Slideshow.
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(={},&block) self.find.build(,&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(={},&block) run_task(SlideshowTask.new(,&block)) end |