Module: Locomotive::Liquid::Filters::Resize

Defined in:
lib/locomotive/liquid/filters/resize.rb

Instance Method Summary collapse

Instance Method Details

#resize(input, resize_string) ⇒ Object



6
7
8
9
10
# File 'lib/locomotive/liquid/filters/resize.rb', line 6

def resize(input, resize_string)
  source = input.instance_variable_get(:@_source) || input

  Locomotive::Dragonfly.resize_url(source, resize_string)
end