Class: Milestoner::Builders::Syndication::Indexer
- Inherits:
-
Object
- Object
- Milestoner::Builders::Syndication::Indexer
- Defined in:
- lib/milestoner/builders/syndication/indexer.rb
Overview
Builds syndicated feed output.
Instance Method Summary collapse
- #call(tags) ⇒ Object
-
#initialize(path_resolver: PathResolver, syndicator: Syndication::Builder.new) ⇒ Indexer
constructor
A new instance of Indexer.
Constructor Details
#initialize(path_resolver: PathResolver, syndicator: Syndication::Builder.new) ⇒ Indexer
Returns a new instance of Indexer.
10 11 12 13 14 |
# File 'lib/milestoner/builders/syndication/indexer.rb', line 10 def initialize(path_resolver: PathResolver, syndicator: Syndication::Builder.new, **) super(**) @path_resolver = path_resolver @syndicator = syndicator end |
Instance Method Details
#call(tags) ⇒ Object
16 |
# File 'lib/milestoner/builders/syndication/indexer.rb', line 16 def call() = syndicator.call().bind { |body| write body } |