123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/callbacks.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(&block) ⇒ Value

[ GitHub ]

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

def initialize(&block)
  @block = block
end

Instance Method Details

#call(target, value)

[ GitHub ]

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

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