class

Similar::DiffOp::Delete

Inherits JSON::Serializable < Similar::DiffOp < Reference < Object

A segment was deleted.

Constructors

new(old_index : Int32, old_len : Int32, new_index : Int32)
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?.

apply_to_hook(d : DiffHook) : Nil

Apply this operation to a diff hook.

Source
grow_left(adjust : Int32) : Nil

Grows the operation on the left.

Source
grow_right(adjust : Int32) : Nil

Grows the operation on the right.

Source
hash(hasher)

See Object#hash(hasher)

new_index
Source
new_range

Returns the new range.

Source
old_index
Source
old_len
Source
old_range

Returns the old range.

Source
shift_left(adjust : Int32) : Nil

Shifts the operation left by adjusting indices.

Source
shift_right(adjust : Int32) : Nil

Shifts the operation right by adjusting indices.

Source
shrink_left(adjust : Int32) : Nil

Shrinks the operation on the left.

Source
shrink_right(adjust : Int32) : Nil

Shrinks the operation on the right.

Source
tag

Returns the tag of the operation.

Source