Sha256: 1ce80262174478720a7fe1712bc21bd0728ae9f0f9d4b4e034daa0c1cdd13eea

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

module Inverter
  module Configuration

    attr_accessor(
      :model_class,
      :template_folders,
      :excluded_templates,
      :disable_middleware
    )

    def configure
      yield self
    end

    def self.extended(base)
      base.set_default_configuration
    end

    def set_default_configuration
      self.excluded_templates = []
      self.disable_middleware = false
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inverter-0.5.1 lib/inverter/configuration.rb
inverter-0.5.0 lib/inverter/configuration.rb
inverter-0.4.7 lib/inverter/configuration.rb
inverter-0.4.6 lib/inverter/configuration.rb
inverter-0.4.5 lib/inverter/configuration.rb
inverter-0.3.2 lib/inverter/configuration.rb