Sha256: 1eeb12d7e057c5759e177fbb8cdaa152cedf6899aec2f9744e5aa028e796b065

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

# Groups Statements and YNAB4File
module Documents
  documents = %w[statement ynab4_file]

  # Load all known Documents
  documents.each do |d|
    # Require the base classes first so that its children can find the parent
    # class since files are otherwise loaded in alphabetical order
    require File.join(__dir__, 'documents', "#{d}s", "#{d}.rb")

    Dir[File.join(__dir__, 'documents', "#{d}s", '*.rb')].sort.each do |file|
      require file
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ynab_convert-2.0.6 lib/ynab_convert/documents.rb
ynab_convert-2.0.5 lib/ynab_convert/documents.rb
ynab_convert-2.0.4 lib/ynab_convert/documents.rb
ynab_convert-2.0.3 lib/ynab_convert/documents.rb
ynab_convert-2.0.1 lib/ynab_convert/documents.rb
ynab_convert-2.0.0 lib/ynab_convert/documents.rb