Class: Rabbit::Parser::Image
Constant Summary
ModuleLoader::LOADERS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
extend_object, #find_loader, #loaders, #push_loader, #unshift_loader
Class Method Details
13
14
15
|
# File 'lib/rabbit/parser/image.rb', line 13
def format_name
"image"
end
|
.match?(source) ⇒ Boolean
Instance Method Details
#parse ⇒ Object
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/rabbit/parser/image.rb', line 34
def parse
options = {
:prefix => "image-parser-parse",
:source => @source,
}
TemporaryFile.create(options) do |image|
@image = image
@canvas << ImageTitleSlide.new(@image.path)
end
end
|