class

Similar::Change(T)

Inherits JSON::Serializable < Reference < Object

Represents the expanded DiffOp change.

This type exists so that it's more convenient to work with textual differences as the underlying DiffOp encodes a group of changes.

Constructors

new(tag : Similar::ChangeTag, old_index : Int32 | Nil, new_index : Int32 | Nil, value : T)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

hash(hasher)

See Object#hash(hasher)

new_index
Source
old_index
Source
value
Source
value_mut

Returns the underlying changed value as mutable reference.

Source
value_ref

Returns the underlying changed value as reference.

Source