Method: WCC::DiffItem#rchar

Defined in:
lib/wcc/diff.rb

#rcharString

Returns a representing character for the kind of this diff item.

Returns:

  • (String)

    single rep char



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/wcc/diff.rb', line 62

def rchar
  case status
  when :new
    'N'
  when :old
    'O'
  when :range
    '@'
  when :ins
    'i'
  when :del
    'd'
  when :other
    '_'
  end
end