Module: Kernel
- Defined in:
- lib/kernel.rb
Overview
Extension of the Kernel module to include the Defi method. The Defi method is a convenient way to create Method objects that encapsulate a method name and its arguments, offering a dynamic approach to method invocation.
Instance Method Summary collapse
-
#Defi(method_name) ⇒ Defi::Method
Creates a new Defi::Method instance.
Instance Method Details
#Defi(method_name) ⇒ Defi::Method
Creates a new Defi::Method instance. This method provides a simple and elegant way to encapsulate a method name and its arguments for later invocation.
36 37 38 |
# File 'lib/kernel.rb', line 36 def Defi(method_name, ...) ::Defi::Method.new(method_name, ...) end |