Sha256: ca4909b87e8f5397cc71fe68124dda2224e2b6cf042bc086a00ca8d6420dfbd1

Contents?: true

Size: 640 Bytes

Versions: 12

Compression:

Stored size: 640 Bytes

Contents

module Blocks
  module Configurator
    extend ActiveSupport::Concern

    included do
      include DynamicConfiguration

      add_config :builder_class
      add_config :renderer_class
      add_config :global_options_set
      add_config :lookup_caller_location, instance_predicate: true
      reset_config
    end

    module ClassMethods
      def reset_config
        configure do |config|
          config.builder_class = Builder
          config.renderer_class = Renderer
          config.lookup_caller_location = false
          config.global_options_set = OptionsSet.new("Global Options")
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blocks-3.0.4 lib/blocks/utilities/configurator.rb
blocks-3.0.3 lib/blocks/utilities/configurator.rb
blocks-3.0.2 lib/blocks/utilities/configurator.rb
blocks-3.0.1 lib/blocks/utilities/configurator.rb
blocks-3.0.0 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc9 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc8 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc7 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc6 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc5 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc4 lib/blocks/utilities/configurator.rb
blocks-3.0.0.rc3 lib/blocks/utilities/configurator.rb