Class: KeySet
- Array
- KeySet
Included Modules
Public Visibility
Public Instance Method Details
add
public
add(opts)
[View source]
10 11 12 |
# File 'lib/octopi/key_set.rb', line 10 def add(opts) Key.add(opts) end |
find
public
find(title)
[View source]
4 5 6 7 8 |
# File 'lib/octopi/key_set.rb', line 4 def find(title) key = detect { |key| key.title == title } raise NotFound, Key if key.nil? key end |