Class: PlatinaWorld::PathBuilder
- Inherits:
-
Object
- Object
- PlatinaWorld::PathBuilder
- Defined in:
- lib/platina_world/path_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(loaded_file) ⇒ PathBuilder
constructor
A new instance of PathBuilder.
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
#build ⇒ Object
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 |