lib/patchmaster/trigger.rb in patchmaster-1.0.0 vs lib/patchmaster/trigger.rb in patchmaster-1.1.2

- old
+ new

@@ -19,10 +19,12 @@ end # If +bytes+ matches our +@bytes+ array then run +@block+. def signal(bytes) if bytes == @bytes - block.call + pm = PM::PatchMaster.instance + pm.instance_eval &@block + pm.gui.refresh if pm.gui end end def to_s "#{@bytes.inspect} => #{(@text || '# no block text found').gsub(/\n\s*/, '; ')}"