Class: HashDiff::Comparison
- Inherits:
-
Struct
- Object
- Struct
- HashDiff::Comparison
- Defined in:
- lib/hash_diff/comparison.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left
2 3 4 |
# File 'lib/hash_diff/comparison.rb', line 2 def left @left end |
#right ⇒ Object
Returns the value of attribute right
2 3 4 |
# File 'lib/hash_diff/comparison.rb', line 2 def right @right end |
Instance Method Details
#diff ⇒ Object
4 5 6 |
# File 'lib/hash_diff/comparison.rb', line 4 def diff @diff ||= differences(left, right) end |
#left_diff ⇒ Object
8 9 10 11 |
# File 'lib/hash_diff/comparison.rb', line 8 def left_diff @concern = :left @left_diff ||= differences(left, right) end |
#right_diff ⇒ Object
13 14 15 16 |
# File 'lib/hash_diff/comparison.rb', line 13 def right_diff @concern = :right @right_diff ||= differences(left, right) end |