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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/callbacks.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Value

Returns a new instance of Value.



152
153
154
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/callbacks.rb', line 152

def initialize(&block)
  @block = block
end

Instance Method Details

#call(target, value) ⇒ Object



155
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/callbacks.rb', line 155

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