Diff::LCS::ChangeTypeTests

Centralises the change test code in Diff::LCS::Change and Diff::LCS::ContextChange, since it’s the same for both classes.

Public Instance Methods

adding?() click to toggle source
    # File lib/diff/lcs/change.rb, line 24
24:   def adding?
25:     @action == '+'
26:   end
changed?() click to toggle source
    # File lib/diff/lcs/change.rb, line 32
32:   def changed?
33:     @changed == '!'
34:   end
deleting?() click to toggle source
    # File lib/diff/lcs/change.rb, line 20
20:   def deleting?
21:     @action == '-'
22:   end
finished_a?() click to toggle source
    # File lib/diff/lcs/change.rb, line 36
36:   def finished_a?
37:     @changed == '>'
38:   end
finished_b?() click to toggle source
    # File lib/diff/lcs/change.rb, line 40
40:   def finished_b?
41:     @changed == '<'
42:   end
unchanged?() click to toggle source
    # File lib/diff/lcs/change.rb, line 28
28:   def unchanged?
29:     @action == '='
30:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.