Module: Shoes::Common::LinkFinder

Included in:
Text, TextBlock
Defined in:
shoes-core/lib/shoes/common/link_finder.rb

Instance Method Summary collapse

Instance Method Details



6
7
8
9
10
11
# File 'shoes-core/lib/shoes/common/link_finder.rb', line 6

def find_links(texts)
  texts.to_a
       .select { |text| text.respond_to?(:links) }
       .map(&:links)
       .flatten
end