Class: Pismo::NFunctions

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

Class Method Summary collapse

Class Method Details

.match_href(list, expression) ⇒ Object



42
43
44
# File 'lib/pismo.rb', line 42

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