Class: ActiveSupport::Callbacks::Conditionals::Value
- Defined in:
 - lib/active_support/callbacks.rb
 
Instance Method Summary collapse
- #call(target, value) ⇒ Object
 - 
  
    
      #initialize(&block)  ⇒ Value 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Value.
 
Constructor Details
#initialize(&block) ⇒ Value
Returns a new instance of Value.
      152 153 154  | 
    
      # File 'lib/active_support/callbacks.rb', line 152 def initialize(&block) @block = block end  | 
  
Instance Method Details
#call(target, value) ⇒ Object
      155  | 
    
      # File 'lib/active_support/callbacks.rb', line 155 def call(target, value); @block.call(value); end  |