Class: Solargraph::RbsMap::Gem

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/rbs_map/gem.rb

Instance Method Summary collapse

Methods inherited from Base

#loader, #path_pins, #pins, pins, #repository

Constructor Details

#initialize(metagem) ⇒ Gem

Returns a new instance of Gem.

Parameters:



7
8
9
10
11
12
13
# File 'lib/solargraph/rbs_map/gem.rb', line 7

def initialize metagem
  super()
  # Gems ship their signatures in sig/, the directory RBS itself
  # loads; other .rbs files (e.g., the rbs gem's core/) are not the
  # gem's own API
  loader.add path: Pathname.new(metagem.full_path).join('sig')
end