Sha256: 3d3a04bd2baff4ea77e3aea46be6b32a3c9c231b342a47f3690fdb93be8c51ef

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.rc1 lib/shoes/common/link_finder.rb