Sha256: 9919b38f26a198e20bd619d9ee6e042fa622f7d1d3c5617b4f98fc2e101192ef

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

module Imagery
  module Missing
    def existing=(existing)
      @existing = existing
    end

    def existing
      @existing
    end

    def url(size = self.default_size)
      if existing.to_s.empty?
        return ['', 'missing', namespace, filename(size)].join('/')
      else
        super
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
imagery-0.0.5 lib/imagery/missing.rb
imagery-0.0.4 lib/imagery/missing.rb
imagery-0.0.3 lib/imagery/missing.rb