Class: Leg::Line::Unchanged
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
59
60
61
|
# File 'lib/leg/line.rb', line 59
def line_number
@line_numbers[1]
end
|
#to_patch(options = {}) ⇒ Object
63
64
65
66
|
# File 'lib/leg/line.rb', line 63
def to_patch(options = {})
char = options[:unchanged_char] || " "
"#{char}#{@source}\n"
end
|
#type ⇒ Object
55
56
57
|
# File 'lib/leg/line.rb', line 55
def type
:unchanged
end
|