class Unified::Line

Public Instance Methods

addition?() click to toggle source
# File lib/unified/line.rb, line 4
def addition?
  @addition ||= first_character == "+"
end
deletion?() click to toggle source
# File lib/unified/line.rb, line 8
def deletion?
  @deletion ||= first_character == "-"
end
unchanged?() click to toggle source
# File lib/unified/line.rb, line 12
def unchanged?
  @unchanged ||= first_character == " "
end

Private Instance Methods

first_character() click to toggle source
# File lib/unified/line.rb, line 17
def first_character
  @first_character ||= self[0]
end