Sha256: 4585ad04373bd999457e8d9bcb787a0f42aa90e045189cb5f1e1c0ef1d09d828

Contents?: true

Size: 404 Bytes

Versions: 14

Compression:

Stored size: 404 Bytes

Contents

# Extension of USPSFlags::Config to allow including custom burgee files.
#
# @private
class USPSFlags::Config
  attr_accessor :burgees_dir

  def initialize
    get_defaults
    get_extension_defaults
    yield self if block_given?
  end

  private
  def get_extension_defaults
    @burgees_dir ||= defined?(::Rails) ? "#{::Rails.root}/app/lib/usps-burgees" : "#{File.dirname(__dir__)}/output"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
usps_flags-burgees-0.0.22 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.21 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.20 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.19 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.18 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.17 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.16 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.15 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.14 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.13 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.12 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.11 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.10 lib/usps_flags/burgees/config.rb
usps_flags-burgees-0.0.9 lib/usps_flags/burgees/config.rb