lib/patchmaster/trigger.rb in patchmaster-0.0.6 vs lib/patchmaster/trigger.rb in patchmaster-1.0.0
- old
+ new
@@ -24,9 +24,9 @@
block.call
end
end
def to_s
- "#{@bytes.inspect} => #{@text ? @text.gsub(/\n\s*/, '; ') : ''}"
+ "#{@bytes.inspect} => #{(@text || '# no block text found').gsub(/\n\s*/, '; ')}"
end
end
end