Sha256: 5466a595c0601dd286cd7e78276f343414e2e058af2486e3429070e12f06c954

Contents?: true

Size: 710 Bytes

Versions: 7

Compression:

Stored size: 710 Bytes

Contents

# 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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ff-tbl-macros-2.0.2 lib/ff-tbl-macros.rb
ff-tbl-macros-2.0.1 lib/ff-tbl-macros.rb
ff-tbl-macros-2.0.0 lib/ff-tbl-macros.rb
ff-tbl-macros-1.0.2 lib/ff-tbl-macros.rb
ff-tbl-macros-1.0.1 lib/ff-tbl-macros.rb
ff-tbl-macros-1.0.0 lib/ff-tbl-macros.rb
ff-tbl-macros-0.1.8 lib/ff-tbl-macros.rb