Module: ToProcInterface::Singleton::ClassMethods Private

Includes:
Delegations
Defined in:
lib/to_proc_interface/singleton.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instance::Singleton (readonly)

Returns:

  • (::Singleton)


# File 'lib/to_proc_interface/singleton.rb', line 34

Instance Method Details

#callObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
43
44
# File 'lib/to_proc_interface/singleton.rb', line 42

def call(...)
  instance.call(...)
end

#to_procProc

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Proc)


38
39
40
# File 'lib/to_proc_interface/singleton.rb', line 38

def to_proc
  instance.to_proc
end