Class: Mahoujin::Graphics::Layout
- Inherits:
-
Object
- Object
- Mahoujin::Graphics::Layout
- Defined in:
- lib/mahoujin/graphics/layout.rb
Instance Method Summary collapse
Instance Method Details
#layout(atom, style, format) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/mahoujin/graphics/layout.rb', line 4 def layout(atom, style, format) case format when :PNG then layout_in_png_format(atom, style) when :SVG then layout_in_svg_format(atom, style) else raise end end |