Module: ActiveStorageVariant::Reflection

Defined in:
lib/active_storage_variant/reflection.rb

Instance Method Summary collapse

Instance Method Details

#variant(name, transformations) ⇒ Object



3
4
5
# File 'lib/active_storage_variant/reflection.rb', line 3

def variant(name, transformations)
  variants[name] = transformations
end

#variantsObject



7
8
9
# File 'lib/active_storage_variant/reflection.rb', line 7

def variants
  @variants ||= {}
end