Sha256: 7f12d61d5b69d1dd2a2f683faa28519cf7f07f6ad8c69a20269ee0d6e97f8be7
Contents?: true
Size: 459 Bytes
Versions: 8
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true module Imgix module ParamHelpers def rect(position) @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
8 entries across 8 versions & 1 rubygems