Class: RexleDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/rexle-diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = timestamp(Rexle.new(source1)).to_a
  a2 = RexleParser.new(source2).to_a

  compare(a, a2)

  @to_doc = Rexle.new(a2)
end

Instance Attribute Details

#to_docObject (readonly)

Returns the value of attribute to_doc.



10
11
12
# File 'lib/rexle-diff.rb', line 10

def to_doc
  @to_doc
end