Class: Diffed::DiffSection

Inherits:
Object
  • Object
show all
Defined in:
lib/diffed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_line, lines) ⇒ DiffSection

Returns a new instance of DiffSection.



111
112
113
# File 'lib/diffed.rb', line 111

def initialize(header_line, lines)
  @header, @lines = header_line, lines
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



109
110
111
# File 'lib/diffed.rb', line 109

def header
  @header
end

#linesObject (readonly)

Returns the value of attribute lines.



109
110
111
# File 'lib/diffed.rb', line 109

def lines
  @lines
end