Class: CoreExt::Callbacks::Conditionals::Value
- Defined in:
- lib/core_ext/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.
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 |