Method: Html2rss::AutoSource::Channel#title

Defined in:
lib/html2rss/auto_source/channel.rb

#titleObject

[View source]

29
30
31
32
33
34
35
# File 'lib/html2rss/auto_source/channel.rb', line 29

def title
  @title ||= if (title = parsed_body.at_css('head > title')&.text.to_s) && !title.empty?
               title.gsub(/\s+/, ' ').strip
             else
               Utils.titleized_channel_url(@url)
             end
end