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 ].freeze
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
15 16 17 |
# File 'lib/yatapp/configuration.rb', line 15 def configure yield self end |
#options ⇒ Object
19 20 21 22 23 |
# File 'lib/yatapp/configuration.rb', line 19 def CONFIGURATION_OPTIONS.inject({}) do |opt, key| opt.merge!(key => send(key)) end end |