Method: BBLib::HashPathProcs.sum
- Defined in:
- lib/hash_path/processors.rb
.sum(child, *args, class_based: true) ⇒ Object
211 212 213 |
# File 'lib/hash_path/processors.rb', line 211 def self.sum(child, *args, class_based: true) child.replace_with(value.to_s.extract_numbers.inject { |s, x| s + x }) end |