lib/y_petri/transition.rb in y_petri-2.1.50 vs lib/y_petri/transition.rb in y_petri-2.1.51

- old
+ new

@@ -275,12 +275,10 @@ # Conversion to a string. # def to_s "#<Transition: %s>" % - "#{name.nil? ? '' : '%s ' % name }(#{type}%s)%s" % - [ "#{assignment_action? ? ' Assign.' : ''}", - "#{name.nil? ? ' id:%s' % object_id : ''}" ] + "#{'%s ' % name if name}(#{type})#{' id:%s' % object_id unless name}" end def place id super rescue Place().instance( id ) end