Class: Solargraph::RbsMap::Gem
- Defined in:
- lib/solargraph/rbs_map/gem.rb
Instance Method Summary collapse
-
#initialize(metagem) ⇒ Gem
constructor
A new instance of Gem.
Methods inherited from Base
#loader, #path_pins, #pins, pins, #repository
Constructor Details
#initialize(metagem) ⇒ Gem
Returns a new instance of Gem.
7 8 9 10 11 12 13 |
# File 'lib/solargraph/rbs_map/gem.rb', line 7 def initialize 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(.full_path).join('sig') end |