Class: Diffed::Section
- Inherits:
-
Object
- Object
- Diffed::Section
- Defined in:
- lib/models/section.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, lines) ⇒ Section
constructor
A new instance of Section.
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
#header ⇒ Object (readonly)
Returns the value of attribute header.
3 4 5 |
# File 'lib/models/section.rb', line 3 def header @header end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
3 4 5 |
# File 'lib/models/section.rb', line 3 def lines @lines end |