Class: SearchFuAttributes
- Inherits:
-
Array
- Object
- Array
- SearchFuAttributes
show all
- Defined in:
- lib/search_fu_attributes.rb
Defined Under Namespace
Classes: DuplicateViewName, NotSearchFuAttribute, ViewNameNotFound
Instance Method Summary
collapse
Instance Method Details
#find(view_name) ⇒ Object
21
22
23
|
# File 'lib/search_fu_attributes.rb', line 21
def find view_name
self.detect { |t| t.view_name == view_name }
end
|
#find!(view_name) ⇒ Object
25
26
27
28
29
|
# File 'lib/search_fu_attributes.rb', line 25
def find! view_name
a = find view_name
raise ViewNameNotFound unless a
a
end
|
#view_names ⇒ Object
17
18
19
|
# File 'lib/search_fu_attributes.rb', line 17
def view_names
self.map { |t| t.view_name }
end
|