Class: Grover::OptionsBuilder
- Defined in:
- lib/grover/options_builder.rb
Overview
Build options from Grover.configuration, meta_options, and passed-in options
Instance Method Summary collapse
-
#initialize(options, uri) ⇒ OptionsBuilder
constructor
A new instance of OptionsBuilder.
Methods inherited from Hash
Constructor Details
#initialize(options, uri) ⇒ OptionsBuilder
Returns a new instance of OptionsBuilder.
11 12 13 14 15 16 17 18 19 |
# File 'lib/grover/options_builder.rb', line 11 def initialize(, uri) super() @uri = uri combined = grover_configuration Utils.deep_merge! combined, Utils.deep_stringify_keys() Utils.deep_merge! combined, unless uri_source? update OptionsFixer.new(combined).run end |