Class: TLDR::SorbetCompatibility

Inherits:
Object
  • Object
show all
Defined in:
lib/tldr/sorbet_compatibility.rb

Class Method Summary collapse

Class Method Details

.unwrap_method(method) ⇒ Object



3
4
5
6
7
# File 'lib/tldr/sorbet_compatibility.rb', line 3

def self.unwrap_method method
  return method unless defined? ::T::Private::Methods

  T::Private::Methods.signature_for_method(method).method || method
end