Class: Diffed::Section

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header, lines) ⇒ Section

Returns a new instance of Section.



5
6
7
# File 'lib/models/section.rb', line 5

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

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



3
4
5
# File 'lib/models/section.rb', line 3

def header
  @header
end

#linesObject (readonly)

Returns the value of attribute lines.



3
4
5
# File 'lib/models/section.rb', line 3

def lines
  @lines
end