Class: ActiveSupport::Callbacks::Conditionals::Value
Do not use. This class is for internal use only.
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 154
def initialize(&block) @block = block end
Instance Method Details
#call(target, value)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 157
def call(target, value); @block.call(value); end