Class: Redmine::Diff
- Inherits:
-
Object
- Object
- Redmine::Diff
- Defined in:
- lib/redmine/unified_diff.rb
Overview
A line of diff
Instance Attribute Summary
-
- (Object) line_left
Returns the value of attribute line_left.
-
- (Object) line_right
Returns the value of attribute line_right.
-
- (Object) nb_line_left
Returns the value of attribute nb_line_left.
-
- (Object) nb_line_right
Returns the value of attribute nb_line_right.
-
- (Object) type_diff_left
Returns the value of attribute type_diff_left.
-
- (Object) type_diff_right
Returns the value of attribute type_diff_right.
Instance Method Summary
-
- (Diff) initialize
constructor
A new instance of Diff.
- - (Object) inspect
Constructor Details
- (Diff) initialize
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
- (Object) line_left
Returns the value of attribute line_left
167 168 169 |
# File 'lib/redmine/unified_diff.rb', line 167 def line_left @line_left end |
- (Object) line_right
Returns the value of attribute line_right
169 170 171 |
# File 'lib/redmine/unified_diff.rb', line 169 def line_right @line_right end |
- (Object) nb_line_left
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 |
- (Object) nb_line_right
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 |
- (Object) type_diff_left
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 |
- (Object) type_diff_right
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
- (Object) inspect
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 |