lib/y_petri/place/guarded.rb in y_petri-2.2.1 vs lib/y_petri/place/guarded.rb in y_petri-2.2.2

- old
+ new

@@ -35,10 +35,10 @@ # in the argument, or returns the federated closure itself if no arguemnts # were given (behaving as +#federated_guard_closure+ alias in this case). # def guard *args, &block if block then - @guards << YPetri::Place::Guard.new( *args, place: name || self, &block ) + @guards << YPetri::Place::Guard.new( *args, place: self, &block ) elsif args.size == 1 then federated_guard_closure.( args[0] ) elsif args.empty? then federated_guard_closure end