module Nursery::Annotations
Public Instance Methods
checkpoint(method_name)
click to toggle source
# File lib/nursery/annotations.rb, line 4 def checkpoint(method_name) alias_method(:"#{method_name}_without_checkpoint", method_name) define_method(method_name) do |*args, &blk| Nursery.checkpoint send(:"#{method_name}_without_checkpoint", *args, &blk) end end