Sha256: 5b7b4812756e6f32c74cc0398bd93dc5a663d41f1d98430afd1fde50336a8a01

Contents?: true

Size: 460 Bytes

Versions: 6

Compression:

Stored size: 460 Bytes

Contents

module WhirledPeas
  class Config
    attr_writer :driver, :template_factory
    attr_accessor :loading_template_factory

    def driver
      unless @driver
        raise ConfigurationError, 'driver must be configured'
      end
      @driver
    end

    def template_factory
      unless @template_factory
        raise ConfigurationError, 'template_factory must be configured'
      end
      @template_factory
    end
  end
  private_constant :Config
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whirled_peas-0.7.1 lib/whirled_peas/config.rb
whirled_peas-0.7.0 lib/whirled_peas/config.rb
whirled_peas-0.6.0 lib/whirled_peas/config.rb
whirled_peas-0.5.0 lib/whirled_peas/config.rb
whirled_peas-0.4.1 lib/whirled_peas/config.rb
whirled_peas-0.4.0 lib/whirled_peas/config.rb