Module: Yatapp::Configuration

Included in:
Yatapp
Defined in:
lib/yatapp/configuration.rb

Constant Summary collapse

CONFIGURATION_OPTIONS =
[
  :languages,
  :api_access_token,
  :project_id,
  :languages,
  :translation_format,
  :root,
  :save_to_path,
  :strip_empty,
  :download_on_start
].freeze

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



17
18
19
# File 'lib/yatapp/configuration.rb', line 17

def configure
  yield self
end

#optionsObject



21
22
23
24
25
# File 'lib/yatapp/configuration.rb', line 21

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