Class: Leg::Line::Removed

Inherits:
Leg::Line show all
Defined in:
lib/leg/line.rb

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_numberObject



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

#typeObject



41
42
43
# File 'lib/leg/line.rb', line 41

def type
  :removed
end