Module: Olyx::Guardrails::Notification::DeepFreezer
- Defined in:
- lib/olyx/guardrails/notification/deep_freezer.rb
Overview
Recursively freezes Hash and Array event structures.
Class Method Summary collapse
Class Method Details
.call(value) ⇒ Object
10 11 12 13 |
# File 'lib/olyx/guardrails/notification/deep_freezer.rb', line 10 def call(value) children(value).each { |child| call(child) } value.freeze end |