Class: Rabbit::ImageManipulable::Mermaid

Inherits:
Base
  • Object
show all
Includes:
GetText, SystemRunner
Defined in:
lib/rabbit/image/mermaid.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Constants included from ModuleLoader

ModuleLoader::LOADERS

Instance Attribute Summary

Attributes inherited from Base

#animation, #filename, #original_height, #original_width, #properties

Class Method Summary collapse

Instance Method Summary collapse

Methods included from SystemRunner

run

Methods included from GetText

included

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

Returns:

  • (Boolean)


29
30
31
# File 'lib/rabbit/image/mermaid.rb', line 29

def match?(filename)
  File.extname(filename).downcase.end_with?(".mmd")
end