Sha256: 7bb63479c511b5c9597288b69db3f6cbc63d910d4104db6eedb71dfade608a15

Contents?: true

Size: 490 Bytes

Versions: 14

Compression:

Stored size: 490 Bytes

Contents

module ErpBaseErpSvcs
  module Config
    class << self
      attr_accessor :compass_ae_engines

      def init!
        @defaults = {
          :@compass_ae_engines => []
        }
      end

      def reset!
        @defaults.each do |k,v|
          instance_variable_set(k,v)
        end
      end

      def configure(&blk)
        @configure_blk = blk
      end

      def configure!
        @configure_blk.call(self) if @configure_blk
      end
    end
    init!
    reset!
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.0.0 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.1.5 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.1.4 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.1.3 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.1.2 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.1.1 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.7 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.1.0 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.6 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.5 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.4 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.3 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.2 lib/erp_base_erp_svcs/config.rb
erp_base_erp_svcs-3.0.1 lib/erp_base_erp_svcs/config.rb