Class: Dyph::TwoWayDiffers::TextNode

Inherits:
Object
  • Object
show all
Defined in:
lib/dyph/two_way_differs/heckel_diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, row:) ⇒ TextNode

Returns a new instance of TextNode.



109
110
111
112
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 109

def initialize(text:, row:)
  @text = text
  @row  = row
end

Instance Attribute Details

#rowObject

Returns the value of attribute row.



107
108
109
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 107

def row
  @row
end

#textObject

Returns the value of attribute text.



107
108
109
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 107

def text
  @text
end