class ActiveAttr::Typecasting::ObjectTypecaster

A “null” typecaster to provide uniformity

@example Usage

ObjectTypecaster.new.call("") #=> ""

@since 0.5.0

Public Instance Methods

call(value) click to toggle source

Returns the original value unmodified

@example Typecast an Object

typecaster.call(1) #=> 1

@param [Object] value The object to typecast

@return [Object] Whatever you passed in

@since 0.5.0

# File lib/active_attr/typecasting/object_typecaster.rb, line 20
def call(value)
  value
end