Class: Diffed::DiffSection
- Inherits:
-
Object
- Object
- Diffed::DiffSection
- Defined in:
- lib/diffed.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
-
#initialize(header_line, lines) ⇒ DiffSection
constructor
A new instance of DiffSection.
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
#header ⇒ Object (readonly)
Returns the value of attribute header.
109 110 111 |
# File 'lib/diffed.rb', line 109 def header @header end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
109 110 111 |
# File 'lib/diffed.rb', line 109 def lines @lines end |