Class: Indexmap::Creator

Inherits:
Object
  • Object
show all
Defined in:
lib/indexmap/creator.rb

Defined Under Namespace

Classes: ValidationConfiguration

Instance Method Summary collapse

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

#createObject



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