class ActiveStorage::Variation

def wrap(variator)

it is assumed to be a transformations Hash and is passed directly to the constructor.
returned unmodified. If it is a String, it is passed to ActiveStorage::Variation.decode. Otherwise,
Returns a Variation instance based on the given variator. If the variator is a Variation, it is
def wrap(variator)
  case variator
  when self
    variator
  when String
    decode variator
  else
    new variator
  end
end