Class: ViewComponentDevtools::Normalizer
- Inherits:
-
Object
- Object
- ViewComponentDevtools::Normalizer
- Defined in:
- lib/view_component_devtools/normalizer.rb
Constant Summary collapse
- REDACTED =
"[REDACTED]"
Instance Method Summary collapse
- #call(value) ⇒ Object
-
#initialize(configuration = ViewComponentDevtools.configuration) ⇒ Normalizer
constructor
A new instance of Normalizer.
Constructor Details
#initialize(configuration = ViewComponentDevtools.configuration) ⇒ Normalizer
Returns a new instance of Normalizer.
10 11 12 |
# File 'lib/view_component_devtools/normalizer.rb', line 10 def initialize(configuration = ViewComponentDevtools.configuration) @configuration = configuration end |
Instance Method Details
#call(value) ⇒ Object
14 15 16 |
# File 'lib/view_component_devtools/normalizer.rb', line 14 def call(value) normalize(value, depth: 0, ancestors: {}) end |