lib/sub_diff/sub.rb in sub_diff-1.0.6 vs lib/sub_diff/sub.rb in sub_diff-1.0.7

- old
+ new

@@ -1,7 +1,9 @@ module SubDiff class Sub + attr_reader :differ + def initialize(differ) @differ = differ end def diff(*args, &block) @@ -12,11 +14,9 @@ process(builder, diff, args.first) end end private - - attr_reader :differ def process(builder, diff, search) builder << prefix(diff) builder.push(diff[:replacement], diff[:match]) builder << suffix(diff, search)