Class: Ace::Search::Molecules::SearchOptionBuilder
- Inherits:
-
Object
- Object
- Ace::Search::Molecules::SearchOptionBuilder
- Defined in:
- lib/ace/search/molecules/search_option_builder.rb
Overview
Builds search options from CLI options and configuration
This molecule handles the merging of CLI-provided options with configuration defaults, including type conversion and option aliasing.
Instance Method Summary collapse
-
#build ⇒ Hash
Build the complete search options hash.
-
#initialize(cli_options, config: nil) ⇒ SearchOptionBuilder
constructor
A new instance of SearchOptionBuilder.
Constructor Details
#initialize(cli_options, config: nil) ⇒ SearchOptionBuilder
Returns a new instance of SearchOptionBuilder.
18 19 20 21 |
# File 'lib/ace/search/molecules/search_option_builder.rb', line 18 def initialize(, config: nil) @cli_options = @config = config || Ace::Search.config end |
Instance Method Details
#build ⇒ Hash
Build the complete search options hash
26 27 28 29 30 |
# File 'lib/ace/search/molecules/search_option_builder.rb', line 26 def build = apply_type_aliases() end |