class CSVStepImporter::Loader
Public Class Methods
new(file_class: CSVStepImporter::File, chunk_class: CSVStepImporter::Chunk, **attributes)
click to toggle source
Calls superclass method
CSVStepImporter::Node::new
# File lib/csv_step_importer/loader.rb, line 7 def initialize(file_class: CSVStepImporter::File, chunk_class: CSVStepImporter::Chunk, **attributes) super **attributes.slice(:parent, :children, :env) add_children attributes[:path] ? file_class.new(**attributes.merge!(chunk_class: chunk_class)) : chunk_class.new(**attributes) end