Method: ContentLinkParser#method_missing

Defined in:
lib/content_link_parser.rb

#method_missing(m) ⇒ Object

Returns the type of links as a method rather than using the hash e.g. ‘content_link_parser.images’



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/content_link_parser.rb', line 58

def method_missing(m)
  if @options[:tags].keys.include?(m)
    links = []
    @options[:tags][m].each do |selector, attribute|
      find_matches(links, selector, attribute)
    end
    links.uniq
  else
    super
  end
end