Method: ROM::Options::Option#transform

Defined in:
lib/rom/support/options.rb

#transform(object, options) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Takes options of some object, applies current transformations and returns updated options

Parameters:

  • object (Object)
  • options (Hash)

Returns:

  • (Hash)

    options



66
67
68
# File 'lib/rom/support/options.rb', line 66

def transform(object, options)
  transformers.inject(options) { |a, e| e[object, a] }
end