Module: Craig::Node::Title

Included in:
Listing::Base
Defined in:
lib/craig/node.rb

Instance Method Summary collapse

Instance Method Details

#titleString

Returns:

  • (String)


13
14
15
# File 'lib/craig/node.rb', line 13

def title
  dom.at_css("a").text.gsub(/\s+/, " ").strip
end