Class: Hikkoshi::Jekyll::Exporter
- Inherits:
-
Exporter
- Object
- Exporter
- Hikkoshi::Jekyll::Exporter
- Defined in:
- lib/hikkoshi/jekyll/exporter.rb
Overview
Instance Attribute Summary collapse
-
#filename_formatter(post) ⇒ Object
Override this method to customize file name format.
Instance Method Summary collapse
Instance Attribute Details
#filename_formatter(post) ⇒ Object
Override this method to customize file name format
27 28 29 |
# File 'lib/hikkoshi/jekyll/exporter.rb', line 27 def filename_formatter @filename_formatter end |
Instance Method Details
#export(path) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/hikkoshi/jekyll/exporter.rb', line 18 def export(path) path = File.(path) @posts.each do |post| generate_post(post, path) end end |