Module: RichUrls::Finders::MetaTitle

Defined in:
lib/finders/meta_title.rb

Class Method Summary collapse

Class Method Details

.call(elem) ⇒ Object



4
5
6
7
8
9
# File 'lib/finders/meta_title.rb', line 4

def self.call(elem)
  return unless elem.tag == :meta &&
                elem.attributes[:property] == 'og:title'

  elem.attributes[:content]
end