Class: Dyph::TwoWayDiffers::TwoWayChunk
- Inherits:
-
Object
- Object
- Dyph::TwoWayDiffers::TwoWayChunk
- Defined in:
- lib/dyph/two_way_differs/heckel_diff.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#left_hi ⇒ Object
readonly
Returns the value of attribute left_hi.
-
#left_lo ⇒ Object
readonly
Returns the value of attribute left_lo.
-
#right_hi ⇒ Object
readonly
Returns the value of attribute right_hi.
-
#right_lo ⇒ Object
readonly
Returns the value of attribute right_lo.
Instance Method Summary collapse
-
#initialize(raw_chunk) ⇒ TwoWayChunk
constructor
A new instance of TwoWayChunk.
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
#action ⇒ Object (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_hi ⇒ Object (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_lo ⇒ Object (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_hi ⇒ Object (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_lo ⇒ Object (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 |