class ActiveRecord::Snapshot::Logger
Public Class Methods
call(*args, &block)
click to toggle source
# File lib/active_record/snapshot/utils/logger.rb, line 4 def self.call(*args, &block) new(*args).call(&block) end
new(step)
click to toggle source
# File lib/active_record/snapshot/utils/logger.rb, line 8 def initialize(step) @step = step end
Public Instance Methods
call() { || ... }
click to toggle source
# File lib/active_record/snapshot/utils/logger.rb, line 12 def call start yield.tap do |success| success ? finish : failed end