Method: Dbee::KeyChain#initialize

Defined in:
lib/dbee/key_chain.rb

#initialize(key_paths = []) ⇒ KeyChain

Returns a new instance of KeyChain.



20
21
22
23
24
25
# File 'lib/dbee/key_chain.rb', line 20

def initialize(key_paths = [])
  @key_path_set       = key_paths.map { |k| KeyPath.get(k) }.to_set
  @ancestor_path_set  = @key_path_set.map(&:ancestor_paths).flatten.to_set

  freeze
end