Sha256: 893f0cdc20f1cdd9f513ee9b3d45cc5311fc9fe64091099ed4041123bcfa87e4

Contents?: true

Size: 359 Bytes

Versions: 8

Compression:

Stored size: 359 Bytes

Contents

module Yatapp
  module Configuration
    CONFIGURATION_OPTIONS = [
      :languages,
      :api_access_token,
      :project
    ].freeze

    attr_accessor *CONFIGURATION_OPTIONS

    def configure
      yield self
    end

    def options
      CONFIGURATION_OPTIONS.inject({}) do |opt, key|
        opt.merge!(key => send(key))
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yatapp-0.4.3 lib/yatapp/configuration.rb
yatapp-0.4.2 lib/yatapp/configuration.rb
yatapp-0.4.1 lib/yatapp/configuration.rb
yatapp-0.4.0 lib/yatapp/configuration.rb
yatapp-0.3.2 lib/yatapp/configuration.rb
yatapp-0.3.1 lib/yatapp/configuration.rb
yatapp-0.3.0 lib/yatapp/configuration.rb
yatapp-0.2.3 lib/yatapp/configuration.rb