Class: Rack::Linkify

Inherits:
Plastic
  • Object
show all
Defined in:
lib/rack-linkify.rb

Instance Method Summary collapse

Instance Method Details

#change_html_string(html) ⇒ Object



11
12
13
# File 'lib/rack-linkify.rb', line 11

def change_html_string(html)
  linkify(html)
end

#change_nokogiri_doc(doc) ⇒ Object



6
7
8
9
# File 'lib/rack-linkify.rb', line 6

def change_nokogiri_doc(doc)
  find_candidate_links(doc)
  doc
end