Module: Atheme::Configuration
- Included in:
- Atheme
- Defined in:
- lib/atheme/configuration.rb
Constant Summary collapse
- VALID_CONFIG_OPTIONS =
[:url, :port].freeze
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
6 7 8 |
# File 'lib/atheme/configuration.rb', line 6 def configure yield self end |
#options ⇒ Object
10 11 12 13 14 |
# File 'lib/atheme/configuration.rb', line 10 def VALID_CONFIG_OPTIONS.inject({}) do |option, key| option.merge!(key => send(key)) end end |