Class: Smith::Workflow::MessageValueNormalizer

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/workflow/message_value_normalizer.rb

Constant Summary collapse

MAX_DEPTH =
64
MAX_NODES =
100_000
MAX_BYTES =
1 * 1024 * 1024
INTEGER_RANGE =
(-(2**63)..((2**63) - 1))

Instance Method Summary collapse

Instance Method Details

#callObject



24
25
26
27
28
29
# File 'lib/smith/workflow/message_value_normalizer.rb', line 24

def call
  @active = {}.compare_by_identity
  @nodes = 0
  @bytes = 0
  copy_value(value, depth: 0)
end