Class: Authkeys::KeyCollection
- Inherits:
-
Object
- Object
- Authkeys::KeyCollection
- Defined in:
- lib/authkeys/key_collection.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(file) ⇒ KeyCollection
constructor
A new instance of KeyCollection.
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 |