Sha256: 4af7e075ec6e2dc9264989d7d42188edb5b9c8da9d90547cab3b2d7ce1649832

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

module ImageMosaic
  module Image
    class Child
      def initialize(url)
        @url = url
      end

      def valid?
        image
        true
      rescue
        false
      end

      def image
        @image ||= MiniMagick::Image.open(@url)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
image_mosaic-0.1.2 lib/image_mosaic/image/child.rb
image_mosaic-0.1.1 lib/image_mosaic/image/child.rb
image_mosaic-0.1.0 lib/image_mosaic/image/child.rb