Module: Kernel
- Defined in:
- lib/kernel.rb
Overview
Core Ruby module extended to provide the Defi method globally. This extension allows for convenient method encapsulation and delayed execution through the Defi method, accessible anywhere in the Ruby environment.
Instance Method Summary collapse
-
#Defi(method_name, *args, **opts, &block) ⇒ Defi::Method
Creates a new Defi::Method instance.
Instance Method Details
#Defi(method_name, *args, **opts, &block) ⇒ Defi::Method
Creates a new Defi::Method instance. This method provides a flexible way to encapsulate a method name along with its arguments, keyword arguments, and an optional block for later invocation.
40 41 42 |
# File 'lib/kernel.rb', line 40 def Defi(method_name, *args, **opts, &block) ::Defi::Method.new(method_name, *args, **opts, &block) end |