module T::CompatibilityPatches::MethodExtensions
Public Instance Methods
arity()
click to toggle source
Calls superclass method
# File lib/types/compatibility_patches.rb, line 75 def arity arity = super return arity if arity != -1 || self.is_a?(Proc) sig = T::Private::Methods.signature_for_method(self) sig ? sig.method.arity : arity end
parameters()
click to toggle source
Calls superclass method
# File lib/types/compatibility_patches.rb, line 87 def parameters sig = T::Private::Methods.signature_for_method(self) sig ? sig.method.parameters : super end
source_location()
click to toggle source
Calls superclass method
# File lib/types/compatibility_patches.rb, line 82 def source_location sig = T::Private::Methods.signature_for_method(self) sig ? sig.method.source_location : super end