Class: Chivy::TreeDiff
- Inherits:
-
Object
- Object
- Chivy::TreeDiff
- Defined in:
- lib/chivy/tree_diff.rb
Instance Attribute Summary collapse
-
#tree_a ⇒ Object
Returns the value of attribute tree_a.
-
#tree_b ⇒ Object
Returns the value of attribute tree_b.
Instance Method Summary collapse
- #diff ⇒ Object
-
#initialize(tree_a, tree_b) ⇒ TreeDiff
constructor
A new instance of TreeDiff.
Constructor Details
#initialize(tree_a, tree_b) ⇒ TreeDiff
Returns a new instance of TreeDiff.
8 9 10 11 |
# File 'lib/chivy/tree_diff.rb', line 8 def initialize(tree_a, tree_b) self.tree_a = tree_a self.tree_b = tree_b end |
Instance Attribute Details
#tree_a ⇒ Object
Returns the value of attribute tree_a.
6 7 8 |
# File 'lib/chivy/tree_diff.rb', line 6 def tree_a @tree_a end |
#tree_b ⇒ Object
Returns the value of attribute tree_b.
6 7 8 |
# File 'lib/chivy/tree_diff.rb', line 6 def tree_b @tree_b end |
Instance Method Details
#diff ⇒ Object
13 14 15 |
# File 'lib/chivy/tree_diff.rb', line 13 def diff end |