module Ivar
def self.get_stashed_method(klass, method_name)
-
(UnboundMethod, nil)
- The stashed method or nil if not found
Parameters:
-
method_name
(Symbol
) -- The name of the method to retrieve -
klass
(Class
) -- The class that owns the method
def self.get_stashed_method(klass, method_name) (klass.instance_variable_get(:@__ivar_method_impl_stash) || {})[method_name] end