class NotifiedTask
Attributes
block[RW]
name[RW]
Public Class Methods
new(name, &block)
click to toggle source
# File lib/exception_notification/notified_task.rb, line 4 def initialize(name, &block) @name = name @block = block define end
Public Instance Methods
define()
click to toggle source
# File lib/exception_notification/notified_task.rb, line 10 def define task name do |t| notifiable { block.call } end end