Class: Rabbit::ImageManipulable::Mermaid
- Includes:
- GetText, SystemRunner
- Defined in:
- lib/rabbit/image/mermaid.rb
Constant Summary
Constants included from GetText
Constants included from ModuleLoader
Instance Attribute Summary
Attributes inherited from Base
#animation, #filename, #original_height, #original_width, #properties
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename, props, canvas: nil) ⇒ Mermaid
constructor
A new instance of Mermaid.
Methods included from SystemRunner
Methods included from GetText
Methods inherited from Base
#[], #[]=, delegate, #draw, #height, #keep_ratio=, #keep_ratio?, #pixbuf, #relative_clip_height, #relative_clip_width, #relative_clip_x, #relative_clip_y, #resize, #width
Methods included from ModuleLoader
extend_object, #find_loader, #loaders, #push_loader, #unshift_loader
Constructor Details
#initialize(filename, props, canvas: nil) ⇒ Mermaid
Returns a new instance of Mermaid.
36 37 38 39 |
# File 'lib/rabbit/image/mermaid.rb', line 36 def initialize(filename, props, canvas: nil) init_delegated_loader(filename, props, canvas) super end |
Class Method Details
.match?(filename) ⇒ Boolean
29 30 31 |
# File 'lib/rabbit/image/mermaid.rb', line 29 def match?(filename) File.extname(filename).downcase.end_with?(".mmd") end |