Class: Optify::OptionsProvider
- Inherits:
-
Object
- Object
- Optify::OptionsProvider
- Defined in:
- lib/optify_ruby/implementation.rb
Overview
Provides configurations based on keys and enabled feature names.
Instance Method Summary collapse
-
#features_with_metadata ⇒ Object
: -> Hash[String, OptionsMetadata].
- #get_options(key, feature_names, config_class, cache_options = nil, preferences = nil) ⇒ Object
-
#init(cache_init_options = nil) ⇒ OptionsProvider
(Optional) Eagerly initializes the cache.
Instance Method Details
#features_with_metadata ⇒ Object
: -> Hash[String, OptionsMetadata]
25 26 27 |
# File 'lib/optify_ruby/implementation.rb', line 25 def end |
#get_options(key, feature_names, config_class, cache_options = nil, preferences = nil) ⇒ Object
30 31 32 |
# File 'lib/optify_ruby/implementation.rb', line 30 def (key, feature_names, config_class, = nil, preferences = nil) (key, feature_names, config_class, , preferences) end |
#init(cache_init_options = nil) ⇒ OptionsProvider
(Optional) Eagerly initializes the cache. : (?CacheInitOptions?) -> OptionsProvider
37 38 39 40 |
# File 'lib/optify_ruby/implementation.rb', line 37 def init( = nil) _init() self end |