Sha256: ec4c7f7db68d91dd9e891b6ea0022619440beb23691531d6bc331d9cd72d0923

Contents?: true

Size: 541 Bytes

Versions: 19

Compression:

Stored size: 541 Bytes

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'

module Cmor
  module Core
    module Configuration
      def configure
        yield self
      end

      mattr_accessor(:default_markup_options) { { processor: :markdown } }

      mattr_accessor(:features) { {} }

      def enable_feature(name, options = {})
        @@features[name] = Cmor::Core::Feature.new(name, options)
      end

      def features?(name)
        @@features.has_key?(name)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cmor_core-0.0.60.pre lib/cmor/core/configuration.rb
cmor_core-0.0.59.pre lib/cmor/core/configuration.rb
cmor_core-0.0.58.pre lib/cmor/core/configuration.rb
cmor_core-0.0.57.pre lib/cmor/core/configuration.rb
cmor_core-0.0.56.pre lib/cmor/core/configuration.rb
cmor_core-0.0.55.pre lib/cmor/core/configuration.rb
cmor_core-0.0.54.pre lib/cmor/core/configuration.rb
cmor_core-0.0.53.pre lib/cmor/core/configuration.rb
cmor_core-0.0.52.pre lib/cmor/core/configuration.rb
cmor_core-0.0.51.pre lib/cmor/core/configuration.rb
cmor_core-0.0.50.pre lib/cmor/core/configuration.rb
cmor_core-0.0.49.pre lib/cmor/core/configuration.rb
cmor_core-0.0.48.pre lib/cmor/core/configuration.rb
cmor_core-0.0.45.pre lib/cmor/core/configuration.rb
cmor_core-0.0.44.pre lib/cmor/core/configuration.rb
cmor_core-0.0.43.pre lib/cmor/core/configuration.rb
cmor_core-0.0.42.pre lib/cmor/core/configuration.rb
cmor_core-0.0.41.pre lib/cmor/core/configuration.rb
cmor_core-0.0.40.pre lib/cmor/core/configuration.rb