Class: ActiveSupport::Callbacks::Conditionals::Value
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/callbacks.rb |
Class Method Summary
- .new(&block) ⇒ Value constructor
Instance Method Summary
Constructor Details
.new(&block) ⇒ Value
# File 'activesupport/lib/active_support/callbacks.rb', line 104
def initialize(&block) @block = block end
Instance Method Details
#call(target, value)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 107
def call(target, value); @block.call(value); end