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, ignore_removed: true) ⇒ RexleDiff
constructor
A new instance of RexleDiff.
Constructor Details
#initialize(source1, source2, ignore_removed: true) ⇒ RexleDiff
Returns a new instance of RexleDiff.
12 13 14 15 16 17 18 19 20 |
# File 'lib/rexle-diff.rb', line 12 def initialize(source1, source2, ignore_removed: true) a = (Rexle.new(source1)).to_a a2 = RexleParser.new(source2).to_a compare(a, a2) @to_doc = Rexle.new(a2) end |
Instance Attribute Details
#to_doc ⇒ Object (readonly)
Returns the value of attribute to_doc.
10 11 12 |
# File 'lib/rexle-diff.rb', line 10 def to_doc @to_doc end |