Parent

Diff::LCS::DefaultCallbacks

This callback object implements the default set of callback events, which only returns the event itself. Note that # and # are not implemented — I haven’t yet figured out where they would be useful.

Note that this is intended to be called as is, e.g.,

    Diff::LCS.LCS(seq1, seq2, Diff::LCS::DefaultCallbacks)

Public Class Methods

change(event) click to toggle source

Called when both the old and new values have changed.

    # File lib/diff/lcs/callbacks.rb, line 42
42:       def change(event)
43:         event
44:       end
discard_a(event) click to toggle source

Called when the old value is discarded in favour of the new value.

    # File lib/diff/lcs/callbacks.rb, line 34
34:       def discard_a(event)
35:         event
36:       end
discard_b(event) click to toggle source

Called when the new value is discarded in favour of the old value.

    # File lib/diff/lcs/callbacks.rb, line 38
38:       def discard_b(event)
39:         event
40:       end
match(event) click to toggle source

Called when two items match.

    # File lib/diff/lcs/callbacks.rb, line 30
30:       def match(event)
31:         event
32:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.