Class: Ruby::Rego::WithModifiers::WithModifierPathOverride
- Inherits:
-
Object
- Object
- Ruby::Rego::WithModifiers::WithModifierPathOverride
- Defined in:
- lib/ruby/rego/with_modifiers/with_modifier_path_override.rb
Overview
Applies a path-based override to a Ruby object. :reek:DataClump :reek:FeatureEnvy :reek:TooManyStatements :reek:DuplicateMethodCall
Instance Method Summary collapse
-
#apply ⇒ Object
-
#initialize(base_value:, keys:, replacement:, location: nil) ⇒ WithModifierPathOverride
constructor
A new instance of WithModifierPathOverride.
Constructor Details
#initialize(base_value:, keys:, replacement:, location: nil) ⇒ WithModifierPathOverride
Returns a new instance of WithModifierPathOverride.
18 19 20 21 22 23 |
# File 'lib/ruby/rego/with_modifiers/with_modifier_path_override.rb', line 18 def initialize(base_value:, keys:, replacement:, location: nil) @base_value = base_value @keys = keys @replacement = replacement @location = location end |
Instance Method Details
#apply ⇒ Object
26 27 28 |
# File 'lib/ruby/rego/with_modifiers/with_modifier_path_override.rb', line 26 def apply apply_to(base_value, keys) end |