Class: HTMLDiff::Match

Inherits:
Struct
  • Object
show all
Defined in:
lib/junebug/ext/diff.rb,
lib/junebug/ext/diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



3
4
5
# File 'lib/junebug/ext/diff.rb', line 3

def size
  @size
end

#start_in_newObject

Returns the value of attribute start_in_new

Returns:

  • (Object)

    the current value of start_in_new



3
4
5
# File 'lib/junebug/ext/diff.rb', line 3

def start_in_new
  @start_in_new
end

#start_in_oldObject

Returns the value of attribute start_in_old

Returns:

  • (Object)

    the current value of start_in_old



3
4
5
# File 'lib/junebug/ext/diff.rb', line 3

def start_in_old
  @start_in_old
end

Instance Method Details

#end_in_newObject



9
10
11
# File 'lib/junebug/ext/diff.rb', line 9

def end_in_new
  self.start_in_new + self.size
end

#end_in_oldObject



5
6
7
# File 'lib/junebug/ext/diff.rb', line 5

def end_in_old
  self.start_in_old + self.size
end