Module: ZK::Extensions::Callbacks::Callback::ClassMethods
- Defined in:
- lib/zk/extensions.rb
Instance Method Summary collapse
-
#create(*args, &block) ⇒ Object
allows for easier construction of a user callback block that will be called with the callback object itself as an argument.
Instance Method Details
#create(*args, &block) ⇒ Object
allows for easier construction of a user callback block that will be called with the callback object itself as an argument.
args, if given, will be passed on *after the callback
59 60 61 |
# File 'lib/zk/extensions.rb', line 59 def create(*args, &block) cb_inst = new { block.call(cb_inst) } end |