Class: GitDiff::Line::Addition
- Defined in:
- lib/git_diff/line/addition.rb
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
Methods inherited from Context
#deletion?, #initialize, #to_s
Constructor Details
This class inherits a constructor from GitDiff::Line::Context
Instance Method Details
#addition? ⇒ Boolean
10 11 12 |
# File 'lib/git_diff/line/addition.rb', line 10 def addition? true end |
#line_number=(line_number) ⇒ Object
6 7 8 |
# File 'lib/git_diff/line/addition.rb', line 6 def line_number=(line_number) @line_number = LineNumber.for_addition(line_number) end |