Sha256: af23c8abebe8ef7bccdebc295008d0a3581c564d027ced3f1d8626db0ffcab7b

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

module Yatapp
  module Configuration
    CONFIGURATION_OPTIONS = [
      :languages,
      :api_access_token,
      :project_id,
      :languages,
      :translation_format,
      :root,
      :save_to_path
    ].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

3 entries across 3 versions & 1 rubygems

Version Path
yatapp-0.5.2 lib/yatapp/configuration.rb
yatapp-0.5.1 lib/yatapp/configuration.rb
yatapp-0.5.0 lib/yatapp/configuration.rb