Class: Svnx::Diff::Line
- Inherits:
-
Object
- Object
- Svnx::Diff::Line
- Defined in:
- lib/svnx/diff/elements.rb
Overview
unused; I prefer a two-element array: [ :added, “sometext” ]
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, text) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(type, text) ⇒ Line
Returns a new instance of Line.
60 61 62 63 |
# File 'lib/svnx/diff/elements.rb', line 60 def initialize type, text @type = type @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
58 59 60 |
# File 'lib/svnx/diff/elements.rb', line 58 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
57 58 59 |
# File 'lib/svnx/diff/elements.rb', line 57 def type @type end |