Class: Indexmap::Creator
- Inherits:
-
Object
- Object
- Indexmap::Creator
- Defined in:
- lib/indexmap/creator.rb
Defined Under Namespace
Classes: ValidationConfiguration
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(output:) ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(output:) ⇒ Creator
Returns a new instance of Creator.
9 10 11 |
# File 'lib/indexmap/creator.rb', line 9 def initialize(output:) @output = output end |
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 |
# File 'lib/indexmap/creator.rb', line 13 def create files = format(write) validate(files) publish(files) files.map(&:filename) end |