Class: Verneuil::Process::KernelMethod

Inherits:
Struct
  • Object
show all
Defined in:
lib/verneuil/process/kernel_methods.rb

Overview

A kernel method points to a Ruby method somewhere.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#methodObject

Returns the value of attribute method



4
5
6
# File 'lib/verneuil/process/kernel_methods.rb', line 4

def method
  @method
end

#nameObject

Returns the value of attribute name



4
5
6
# File 'lib/verneuil/process/kernel_methods.rb', line 4

def name
  @name
end

#receiverObject

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