Class: PlatinaWorld::PathBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/platina_world/path_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(loaded_file) ⇒ PathBuilder

Returns a new instance of PathBuilder.



5
6
7
# File 'lib/platina_world/path_builder.rb', line 5

def initialize(loaded_file)
  @loaded_file = loaded_file
end

Instance Method Details

#buildObject



9
10
11
12
13
# File 'lib/platina_world/path_builder.rb', line 9

def build
  generate_paths(@loaded_file).flat_map do |file_path|
    PlatinaWorld::Path.new(file_path)
  end
end