Class: Redmine::Diff

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/unified_diff.rb

Overview

A line of diff

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiff

Returns a new instance of Diff



173
174
175
176
177
178
179
180
# File 'lib/redmine/unified_diff.rb', line 173

def initialize()
  self.nb_line_left = ''
  self.nb_line_right = ''
  self.line_left = ''
  self.line_right = ''
  self.type_diff_right = ''
  self.type_diff_left = ''
end

Instance Attribute Details

#line_leftObject

Returns the value of attribute line_left



167
168
169
# File 'lib/redmine/unified_diff.rb', line 167

def line_left
  @line_left
end

#line_rightObject

Returns the value of attribute line_right



169
170
171
# File 'lib/redmine/unified_diff.rb', line 169

def line_right
  @line_right
end

#nb_line_leftObject

Returns the value of attribute nb_line_left



166
167
168
# File 'lib/redmine/unified_diff.rb', line 166

def nb_line_left
  @nb_line_left
end

#nb_line_rightObject

Returns the value of attribute nb_line_right



168
169
170
# File 'lib/redmine/unified_diff.rb', line 168

def nb_line_right
  @nb_line_right
end

#type_diff_leftObject

Returns the value of attribute type_diff_left



171
172
173
# File 'lib/redmine/unified_diff.rb', line 171

def type_diff_left
  @type_diff_left
end

#type_diff_rightObject

Returns the value of attribute type_diff_right



170
171
172
# File 'lib/redmine/unified_diff.rb', line 170

def type_diff_right
  @type_diff_right
end

Instance Method Details

#inspectObject



182
183
184
185
186
187
188
# File 'lib/redmine/unified_diff.rb', line 182

def inspect
  puts '### Start Line Diff ###'
  puts self.nb_line_left
  puts self.line_left
  puts self.nb_line_right
  puts self.line_right
end