Class: Verneuil::Process::KernelMethod
- Inherits:
-
Struct
- Object
- Struct
- Verneuil::Process::KernelMethod
- Defined in:
- lib/verneuil/process/kernel_methods.rb
Overview
A kernel method points to a Ruby method somewhere.
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#name ⇒ Object
Returns the value of attribute name.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
Instance Method Summary collapse
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method
4 5 6 |
# File 'lib/verneuil/process/kernel_methods.rb', line 4 def method @method end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/verneuil/process/kernel_methods.rb', line 4 def name @name end |
#receiver ⇒ Object
Returns the value of attribute receiver
4 5 6 |
# File 'lib/verneuil/process/kernel_methods.rb', line 4 def receiver @receiver end |
Instance Method Details
#invoke(process, receiver) ⇒ Object
5 6 7 |
# File 'lib/verneuil/process/kernel_methods.rb', line 5 def invoke(process, receiver) method.call(process, receiver) end |