Sha256: 2e1394559577ac7cd4a795fc0c775ff4f2734d3679c9c77594128d5c7a6aaa7b

Contents?: true

Size: 524 Bytes

Versions: 6

Compression:

Stored size: 524 Bytes

Contents

module MerchCalendar
  class << self

    attr_writer :configuration

    # Returns the global configuration object
    #
    # @return [Configuration]
    def configuration
      @configuration ||= Configuration.new
    end

    # Used in initializers to set the global configuration
    #
    # @return [void]
    def configure
      yield(configuration)
    end

    # Resets the configuration to default values
    #
    # @return [void]
    def reset_config!
      @configuration = Configuration.new
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
merch_calendar-0.1.0.rc1 lib/merch_calendar/configurable.rb
merch_calendar-0.0.5 lib/merch_calendar/configurable.rb
merch_calendar-0.0.5.rc1 lib/merch_calendar/configurable.rb
merch_calendar-0.0.4 lib/merch_calendar/configurable.rb
merch_calendar-0.0.3 lib/merch_calendar/configurable.rb
merch_calendar-0.0.1 lib/merch_calendar/configurable.rb