Class: Dyph::TwoWayDiffers::TwoWayChunk

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(raw_chunk) ⇒ TwoWayChunk

Returns a new instance of TwoWayChunk.



117
118
119
120
121
122
123
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 117

def initialize(raw_chunk)
  @action   = raw_chunk[0]
  @left_lo  = raw_chunk[1]
  @left_hi  = raw_chunk[2]
  @right_lo = raw_chunk[3]
  @right_hi = raw_chunk[4]
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



116
117
118
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 116

def action
  @action
end

#left_hiObject (readonly)

Returns the value of attribute left_hi.



116
117
118
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 116

def left_hi
  @left_hi
end

#left_loObject (readonly)

Returns the value of attribute left_lo.



116
117
118
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 116

def left_lo
  @left_lo
end

#right_hiObject (readonly)

Returns the value of attribute right_hi.



116
117
118
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 116

def right_hi
  @right_hi
end

#right_loObject (readonly)

Returns the value of attribute right_lo.



116
117
118
# File 'lib/dyph/two_way_differs/heckel_diff.rb', line 116

def right_lo
  @right_lo
end