method

changed_in_place?

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Value
changed_in_place?(raw_old_value, new_value) public

Determines whether the mutable value has been modified since it was read. Returns false by default. If your type returns an object which could be mutated, you should override this method. You will need to either:

  • pass new_value to Value#serialize and compare it to raw_old_value

or

  • pass raw_old_value to Value#deserialize and compare it to new_value

raw_old_value The original value, before being passed to deserialize.

new_value The current value, after type casting.

Show source
Register or log in to add new notes.