Class: RexleDiff
- Inherits:
-
Object
- Object
- RexleDiff
- Defined in:
- lib/rexle-diff.rb
Instance Attribute Summary collapse
-
#to_doc ⇒ Object
readonly
Returns the value of attribute to_doc.
Instance Method Summary collapse
-
#initialize(source1, source2, fuzzy_match: false) ⇒ RexleDiff
constructor
A new instance of RexleDiff.
Constructor Details
#initialize(source1, source2, fuzzy_match: false) ⇒ RexleDiff
Returns a new instance of RexleDiff.
13 14 15 16 17 18 19 20 |
# File 'lib/rexle-diff.rb', line 13 def initialize(source1, source2, fuzzy_match: false) @fuzzy_match = fuzzy_match doc1, doc2 = Rexle.new(source1), Rexle.new(source2) compare(doc1.root, doc2.root) @to_doc = doc2 end |
Instance Attribute Details
#to_doc ⇒ Object (readonly)
Returns the value of attribute to_doc.
11 12 13 |
# File 'lib/rexle-diff.rb', line 11 def to_doc @to_doc end |