Sha256: 9d294ddc94e8fde88de7a98410650ee7c79bfcdce93ff8a32ec13f729b1d5d06
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
# frozen_string_literal: true module Imgix module ParamHelpers def rect(position) warn "Warning: `ParamHelpers.rect` has been deprecated and will be removed in the next major version.\n" @options[:rect] = position and return self if position.is_a?(String) @options[:rect] = [ position[:x] || position[:left], position[:y] || position[:top], position[:width] || (position[:right] - position[:left]), position[:height] || (position[:bottom] - position[:top]) ].join(',') return self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
imgix-3.4.0 | lib/imgix/param_helpers.rb |
imgix-3.3.1 | lib/imgix/param_helpers.rb |
imgix-3.3.0 | lib/imgix/param_helpers.rb |