Class: ActiveSupport::Callbacks::Conditionals::Value

Inherits:
Object
  • Object
show all
Defined in:
activesupport/lib/active_support/callbacks.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Value


100
101
102
# File 'activesupport/lib/active_support/callbacks.rb', line 100

def initialize(&block)
  @block = block
end

Instance Method Details

#call(target, value) ⇒ Object


103
# File 'activesupport/lib/active_support/callbacks.rb', line 103

def call(target, value); @block.call(value); end