Method: TreeHash#move
- Defined in:
- lib/bblib/core/classes/tree_hash.rb
#move(paths) ⇒ Object
158 159 160 161 162 163 164 165 166 167 |
# File 'lib/bblib/core/classes/tree_hash.rb', line 158 def move(paths) paths.each do |from, to| values = find(from) next if values.empty? value = values.first bridge(to => value) value.kill if value end self end |