Class: KeySet

  • Array
    • KeySet

Included Modules

Octopi

Public Visibility

Public Instance Method Summary

#add(opts)
#find(title)

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)

Meta Tags

Raises:

[NotFound]
[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
Generated on Friday, July 31 2009 at 05:01:55 PM by YARD 0.2.3.2 (ruby-1.8.6).