Class: CoreExt::Callbacks::Conditionals::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/callbacks.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Value

Returns a new instance of Value.



108
109
110
# File 'lib/core_ext/callbacks.rb', line 108

def initialize(&block)
  @block = block
end

Instance Method Details

#call(target, value) ⇒ Object



111
# File 'lib/core_ext/callbacks.rb', line 111

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