Method: HashPath#insert

Defined in:
lib/bblib/core/hash_path/hash_path.rb

#insert(path, index) ⇒ Object



18
19
20
21
22
23
# File 'lib/bblib/core/hash_path/hash_path.rb', line 18

def insert(path, index)
  parse_path(path).each do |part|
    parts[index] = part
    index += 1
  end
end