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

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

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Value

Returns a new instance of Value.



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

def initialize(&block)
  @block = block
end

Instance Method Details

#call(target, value) ⇒ Object



105
# File 'lib/active_support/callbacks.rb', line 105

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