Class: Raev::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/raev/parser.rb

Instance Method Summary collapse

Instance Method Details

#match_href(list, expression) ⇒ Object



5
6
7
# File 'lib/raev/parser.rb', line 5

def match_href list, expression
  list.find_all { |node| node['href'] =~ /#{expression}/ }
end