Method: ConvenientService::Utils::Object.own_method

Defined in:
lib/convenient_service/utils/object.rb

.own_methodObject

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.

Examples:

object = Object.new.tap { |object| object.instance_eval { self.class.attr_reader :foo } }

ConvenientService::Utils::Object.own_method(object, :foo)
# => #<Method: #<Object:0x0000555e524252d8>.foo() ...>

ConvenientService::Utils::Object.own_method(object, :puts)
# => nil

Since:

  • 1.0.0



74
75
76
# File 'lib/convenient_service/utils/object.rb', line 74

def own_method(...)
  GetOwnMethod.call(...)
end