# frozen_string_literal: true %w[ trailblazer require_all active_support/inflector uber/options ].each { |lib| require lib } # Trailblazer shared macros used across multiple apps module Macros class << self # @return [String] root path to this gem # @example # Macros.gem_root #=> '/home/user/.gems/macros' def gem_root File.expand_path('..', __dir__) end end end require File.dirname(__FILE__) + '/macros/base.rb' # Macros::Base must be loaded before other macros' classes require_all File.dirname(__FILE__) + '/**/*.rb' # load gem' macros # load app specific macros if Dir.exist? 'lib/macros' require_all 'lib/macros/*.rb' require_all 'lib/macros/**/*.rb' end