lib/arborist/event/node_matching.rb in arborist-0.0.1.pre20160106113421 vs lib/arborist/event/node_matching.rb in arborist-0.0.1.pre20160128152542

- old
+ new

@@ -28,7 +28,12 @@ return super && object.respond_to?( :criteria ) && self.node.matches?( object.criteria ) end + ### Inject the node identifier into the generated hash. + def to_hash + return super.merge( identifier: self.node.identifier ) + end + end # module Arborist::Event::NodeMatching