Sha256: fcb39fc4389cabaa53cb893a7a68134155d74e388953437452d1e6f8ccfdb09e

Contents?: true

Size: 579 Bytes

Versions: 6

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

# Regroups all the classes involved in transforming a given Statement into a
# YNAB4File
module Transformers
  transformers = %w[cleaner enhancer formatter]

  # Load all known Transformers
  transformers.each do |t|
    # 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__, 'transformers', "#{t}s", "#{t}.rb")

    Dir[File.join(__dir__, 'transformers', "#{t}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/transformers.rb
ynab_convert-2.0.5 lib/ynab_convert/transformers.rb
ynab_convert-2.0.4 lib/ynab_convert/transformers.rb
ynab_convert-2.0.3 lib/ynab_convert/transformers.rb
ynab_convert-2.0.1 lib/ynab_convert/transformers.rb
ynab_convert-2.0.0 lib/ynab_convert/transformers.rb