Method: Html2rss::Config#selector_attributes_with_channel

Defined in:
lib/html2rss/config.rb

#selector_attributes_with_channel(name) ⇒ Hash<Symbol, Object>

Retrieves selector attributes merged with channel attributes.

Parameters:

  • name (Symbol)

    Selector name.

Returns:

  • (Hash<Symbol, Object>)

    Merged attributes hash.

[View source]

59
60
61
# File 'lib/html2rss/config.rb', line 59

def selector_attributes_with_channel(name)
  @selectors.selector(name).to_h.merge(channel: @channel)
end