diff --git a/lib/solargraph/rbs_map/core_fills.rb b/lib/solargraph/rbs_map/core_fills.rb index bb8771f2..95fbf6da 100644 --- a/lib/solargraph/rbs_map/core_fills.rb +++ b/lib/solargraph/rbs_map/core_fills.rb @@ -15,6 +15,11 @@ module CoreFills 'then', 'true', 'undef', 'unless', 'until', 'when', 'while', 'yield' ].map { |k| Pin::Keyword.new(k) } + MISSING = [ + Solargraph::Pin::Method.new(name: 'tap', scope: :instance, closure: Solargraph::Pin::Namespace.new(name: 'Object')), + Solargraph::Pin::Method.new(name: 'class', scope: :instance, closure: Solargraph::Pin::Namespace.new(name: 'Object'), comments: '@return [Class]') + ] + YIELDPARAMS = [ Override.from_comment('Object#tap', %( @return [self] @@ -55,7 +60,8 @@ module CoreFills end ERRNOS = errnos - ALL = KEYWORDS + YIELDPARAMS + YIELDPARAM_SINGLE_PARAMETERS + CLASS_RETURN_TYPES + ERRNOS + ALL = KEYWORDS + MISSING + YIELDPARAMS + YIELDPARAM_SINGLE_PARAMETERS + CLASS_RETURN_TYPES + ERRNOS end end end +