class Clemency::Configuration

Attributes

callbacks[R]

Public Class Methods

new() click to toggle source
# File lib/clemency/configuration.rb, line 8
def initialize
  @callbacks = Callbacks.new
end

Public Instance Methods

after_down(&blk) click to toggle source
# File lib/clemency/configuration.rb, line 20
def after_down(&blk)
  @callbacks.set(:after_down, blk)
end
after_up(&blk) click to toggle source
# File lib/clemency/configuration.rb, line 14
def after_up(&blk)
  @callbacks.set(:after_up, blk)
end
before_down(&blk) click to toggle source
# File lib/clemency/configuration.rb, line 17
def before_down(&blk)
  @callbacks.set(:before_down, blk)
end
before_up(&blk) click to toggle source
# File lib/clemency/configuration.rb, line 11
def before_up(&blk)
  @callbacks.set(:before_up, blk)
end