Sha256: bfe692337d034e57da35badb79242674a659a2bd22b552721c54fb6b7c9ed45b

Contents?: true

Size: 222 Bytes

Versions: 1

Compression:

Stored size: 222 Bytes

Contents

require 'tdiff'

class Node < Struct.new(:name, :children)

  include TDiff

  def tdiff_each_child(node,&block)
    node.children.each(&block)
  end

  def tdiff_equal(node1,node2)
    node1.name == node2.name
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdiff-0.1.0 spec/classes/node.rb