Class: KVDAG::KeyPathHashProxy::KeyPath

Inherits:
Array
  • Object
show all
Defined in:
lib/kvdag/keypathhash.rb

Instance Method Summary collapse

Constructor Details

#initialize(keypath) ⇒ KeyPath

Returns a new instance of KeyPath.



8
9
10
11
# File 'lib/kvdag/keypathhash.rb', line 8

def initialize(keypath)
  keypath = keypath.split('.') if keypath.is_a?(String)
  super
end