Class: Leg::Line::Added
Instance Attribute Summary
Attributes inherited from Leg::Line
#line_numbers, #source
Instance Method Summary
collapse
Methods inherited from Leg::Line
#blank?, #clone, #initialize
Constructor Details
This class inherits a constructor from Leg::Line
Instance Method Details
#line_number ⇒ Object
31
32
33
|
# File 'lib/leg/line.rb', line 31
def line_number
@line_numbers[1]
end
|
#to_patch(options = {}) ⇒ Object
35
36
37
|
# File 'lib/leg/line.rb', line 35
def to_patch(options = {})
"+#{@source}\n"
end
|
#type ⇒ Object
27
28
29
|
# File 'lib/leg/line.rb', line 27
def type
:added
end
|