Class: Leg::Line::Removed
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
45
46
47
|
# File 'lib/leg/line.rb', line 45
def line_number
@line_numbers[0]
end
|
#to_patch(options = {}) ⇒ Object
49
50
51
|
# File 'lib/leg/line.rb', line 49
def to_patch(options = {})
"-#{@source}\n"
end
|
#type ⇒ Object
41
42
43
|
# File 'lib/leg/line.rb', line 41
def type
:removed
end
|