class Diffing::Part

Attributes

insert[R]
remove[R]
source[R]

Public Class Methods

new( source: '', insert: '', remove: '' ) click to toggle source
# File lib/diffing/part.rb, line 8
def initialize( source: '', insert: '', remove: '' )
  @source, @insert, @remove = source, insert, remove
end

Public Instance Methods

insert?() click to toggle source
# File lib/diffing/part.rb, line 16
def insert?
  not @insert.empty?
end
remove?() click to toggle source
# File lib/diffing/part.rb, line 20
def remove?
  not @remove.empty?
end
source?() click to toggle source
# File lib/diffing/part.rb, line 12
def source?
  not @source.empty?
end