Class: JekyllLilyPondConverter::Handler
- Inherits:
-
Object
- Object
- JekyllLilyPondConverter::Handler
- Defined in:
- lib/jekyll_lilypond_converter/handler.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(content:, naming_policy:, image_format:, site_manager:, static_file_builder:) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(content:, naming_policy:, image_format:, site_manager:, static_file_builder:) ⇒ Handler
Returns a new instance of Handler.
3 4 5 6 7 8 9 |
# File 'lib/jekyll_lilypond_converter/handler.rb', line 3 def initialize(content:, naming_policy:, image_format:, site_manager:, static_file_builder:) @content = content @naming_policy = naming_policy @image_format = image_format @site_manager = site_manager @static_file_builder = static_file_builder end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/jekyll_lilypond_converter/handler.rb', line 11 def execute lilies.each do |lily| write_lily_code_file(lily) generate_lily_image(lily) add_lily_image_to_site(lily) replace_snippet_with_image_link(lily) end content end |