Class: Diff::Display::AddLine
- Defined in:
- lib/diff/display/data_structure.rb
Overview
class AddLine < Line
def initialize(line, line_number)
super(line, nil, line_number)
end
end
class RemLine < Line
def initialize(line, line_number)
super(line, line_number, nil)
end
end
Instance Attribute Summary
Attributes inherited from Line
Instance Method Summary collapse
-
#initialize(line, line_number, inline = false) ⇒ AddLine
constructor
A new instance of AddLine.
Methods inherited from Line
add, #expand_inline_changes_with, header, #identifier, #inline_changes?, #inspect, nonewline, rem, #segments, unmod
Constructor Details
#initialize(line, line_number, inline = false) ⇒ AddLine
Returns a new instance of AddLine.
127 128 129 130 |
# File 'lib/diff/display/data_structure.rb', line 127 def initialize(line, line_number, inline = false) super(line, nil, line_number) @inline = inline end |