Class: Vitreous::Share::IndexSearcher
- Inherits:
-
Object
- Object
- Vitreous::Share::IndexSearcher
- Defined in:
- lib/vitreous/share/index_searcher.rb
Class Method Summary collapse
Class Method Details
.search(node, link) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/vitreous/share/index_searcher.rb', line 4 def self.search( node, link ) return node if node['link'] == link node['elements'].each do |e| found = Vitreous::Share::IndexSearcher.search( e, link ) return found if found end return nil end |