Class: Jekyll::Archimate::ArchimateSvgGenerator
- Inherits:
-
Object
- Object
- Jekyll::Archimate::ArchimateSvgGenerator
- Defined in:
- lib/jekyll/archimate/archimate_svg_generator.rb
Instance Attribute Summary collapse
-
#archimate_file ⇒ Object
readonly
Returns the value of attribute archimate_file.
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(site, archimate_file) ⇒ ArchimateSvgGenerator
constructor
A new instance of ArchimateSvgGenerator.
Constructor Details
#initialize(site, archimate_file) ⇒ ArchimateSvgGenerator
Returns a new instance of ArchimateSvgGenerator.
9 10 11 12 |
# File 'lib/jekyll/archimate/archimate_svg_generator.rb', line 9 def initialize(site, archimate_file) @site = site @archimate_file = archimate_file end |
Instance Attribute Details
#archimate_file ⇒ Object (readonly)
Returns the value of attribute archimate_file.
7 8 9 |
# File 'lib/jekyll/archimate/archimate_svg_generator.rb', line 7 def archimate_file @archimate_file end |
#site ⇒ Object (readonly)
Returns the value of attribute site.
6 7 8 |
# File 'lib/jekyll/archimate/archimate_svg_generator.rb', line 6 def site @site end |
Instance Method Details
#generate ⇒ Object
14 15 16 17 18 19 |
# File 'lib/jekyll/archimate/archimate_svg_generator.rb', line 14 def generate create_svg_source_path_if_needed model.diagrams.each do |diagram| generate_diagram(diagram) end end |