Class: Authkeys::KeyCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/authkeys/key_collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ KeyCollection

Returns a new instance of KeyCollection.



3
4
5
# File 'lib/authkeys/key_collection.rb', line 3

def initialize(file)
  @file = file
end

Instance Method Details

#each(&block) ⇒ Object



7
8
9
10
11
# File 'lib/authkeys/key_collection.rb', line 7

def each(&block)
  keys.each do |key|
    yield(key)
  end
end