Method: AbstractMapper::Functions.identity

Defined in:
lib/abstract_mapper/functions.rb

.identity(value) ⇒ Object

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.

Returns the unchanged value whatever parameters are given

Examples:

fn = Functions[:identity, :foo]
fn[1] # => 1

Parameters:

  • value (Object)

Returns:

  • (Object)


25
26
27
# File 'lib/abstract_mapper/functions.rb', line 25

def self.identity(value, *)
  value
end