Class: Svnx::Diff::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/svnx/diff/elements.rb

Overview

unused; I prefer a two-element array: [ :added, “sometext” ]

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (readonly)

Returns the value of attribute text.



58
59
60
# File 'lib/svnx/diff/elements.rb', line 58

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



57
58
59
# File 'lib/svnx/diff/elements.rb', line 57

def type
  @type
end