Method: Html2rss::Item#method_missing

Defined in:
lib/html2rss/item.rb

#method_missing(method_name, *_args) ⇒ String

Dynamically extracts data based on the method name.

Parameters:

  • method_name (Symbol)
  • _args (Array)

Returns:

  • (String)

    extracted value for the selector.



64
65
66
67
68
# File 'lib/html2rss/item.rb', line 64

def method_missing(method_name, *_args)
  return super unless respond_to_missing?(method_name)

  extract(method_name)
end