Sha256: 7ba15fca7ae8e9be56608c6b1556552616c25821e96becefe1169aec271a2c62

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

module Redbreast
  module Crawler
    class Image

      def self.image_names_uniq(assets_search_path)
        Dir.glob(assets_search_path).flat_map { |asset_folder|
            Dir.glob("#{asset_folder}/**/*.imageset").map { |image_name|
                image_name.split("/")[-1].chomp(".imageset")
            }
          }
          .uniq
      end

    end
  end
end

      

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redbreast-0.1.2 lib/redbreast/crawlers/image_crawler.rb
redbreast-0.1.1 lib/redbreast/crawlers/image_crawler.rb
redbreast-0.1.0 lib/redbreast/crawlers/image_crawler.rb