Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5fc6532326
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.418 kb
module XDiff
class Transformation < Mutation
attr_accessor :node
def initialize(node, mutation_chain = [])
self.node = node
self.mutation_chain = mutation_chain
end
def do_mutation(node)
self.node
end
def my_cost
0
end
def to_s
"Transformation batch <\n#{[mutation_chain].flatten.collect{|c| c.to_s}.join("\n")}>"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.