Class: Dropdown::Processor
- Inherits:
-
Object
- Object
- Dropdown::Processor
- Defined in:
- lib/dropdown/processor.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#markdown_iterator ⇒ Object
Returns the value of attribute markdown_iterator.
-
#output_store ⇒ Object
Returns the value of attribute output_store.
-
#reader ⇒ Object
Returns the value of attribute reader.
-
#renderer ⇒ Object
Returns the value of attribute renderer.
-
#source ⇒ Object
Returns the value of attribute source.
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
-
#initialize ⇒ Processor
constructor
A new instance of Processor.
- #process ⇒ Object
Constructor Details
#initialize ⇒ Processor
Returns a new instance of Processor.
13 14 15 |
# File 'lib/dropdown/processor.rb', line 13 def initialize @renderer = Dropdown.configuration.renderer end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def destination @destination end |
#markdown_iterator ⇒ Object
Returns the value of attribute markdown_iterator.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def markdown_iterator @markdown_iterator end |
#output_store ⇒ Object
Returns the value of attribute output_store.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def output_store @output_store end |
#reader ⇒ Object
Returns the value of attribute reader.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def reader @reader end |
#renderer ⇒ Object
Returns the value of attribute renderer.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def renderer @renderer end |
#source ⇒ Object
Returns the value of attribute source.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def source @source end |
#storage ⇒ Object
Returns the value of attribute storage.
5 6 7 |
# File 'lib/dropdown/processor.rb', line 5 def storage @storage end |
Instance Method Details
#process ⇒ Object
24 25 26 27 28 29 |
# File 'lib/dropdown/processor.rb', line 24 def process markdown_iterator.each do |file| renderer = renderer_for file output_store.save renderer.render, renderer.output_filename end end |