summaryrefslogtreecommitdiff
path: root/lib/dslkeywords/notify.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-15 10:56:10 +0200
committerPaul Buetow <paul@buetow.org>2025-02-15 10:56:10 +0200
commit5c2865998aec2db34c42ee092952ec37ebd3cf16 (patch)
tree3f167bb65c03fc8cb3b046b3573979f86a782c56 /lib/dslkeywords/notify.rb
parent713a2081a9a3265d1e5218c1f88a293cd3b32a1c (diff)
better
Diffstat (limited to 'lib/dslkeywords/notify.rb')
-rw-r--r--lib/dslkeywords/notify.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dslkeywords/notify.rb b/lib/dslkeywords/notify.rb
index c7d50d9..602d216 100644
--- a/lib/dslkeywords/notify.rb
+++ b/lib/dslkeywords/notify.rb
@@ -20,10 +20,10 @@ module RCM
# Add notify keyword to the DSL
class DSL
- def notify(message, &block)
+ def notify(message = nil, &block)
return unless @conds_met
- n = Notify.new(message)
+ n = Notify.new(message.nil? ? '' : message)
n.message(n.instance_eval(&block)) if block
self << n
n