Method: Html2rss::AutoSource::Channel#language
- Defined in:
- lib/html2rss/auto_source/channel.rb
#language ⇒ Object
40 41 42 43 44 |
# File 'lib/html2rss/auto_source/channel.rb', line 40 def language return parsed_body['lang'] if parsed_body.name == 'html' && parsed_body['lang'] parsed_body.at_css('[lang]')&.[]('lang') end |