Sha256: 196aa7f86a16a0629a9c1177e80debb275eac8b7ce019e0964ed203a3e37c4e9
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true # Extension of USPSFlags::Config to allow including custom burgee files. # # @private class USPSFlags class Config attr_writer :burgees_dir def initialize get_defaults burgees_dir yield self if block_given? end def burgees_dir @burgees_dir ||= if defined?(::Rails) "#{::Rails.root}/app/lib/usps-burgees" else "#{File.dirname(__dir__)}/output" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
usps_flags-burgees-0.1.4 | lib/usps_flags/burgees/config.rb |
usps_flags-burgees-0.1.3 | lib/usps_flags/burgees/config.rb |
usps_flags-burgees-0.1.2 | lib/usps_flags/burgees/config.rb |