Class: Leg::Line::Folded

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



74
75
76
# File 'lib/leg/line.rb', line 74

def line_number
  @line_numbers[0]
end

#to_patch(options = {}) ⇒ Object



78
79
80
# File 'lib/leg/line.rb', line 78

def to_patch(options = {})
  raise "can't convert folded line to patch"
end

#typeObject



70
71
72
# File 'lib/leg/line.rb', line 70

def type
  :folded
end