Class: Solargraph::RbsMap::Path

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#loader, #path_pins, #pins, #repository

Constructor Details

#initialize(path) ⇒ Path

Returns a new instance of Path.

Parameters:

  • path (String)


13
14
15
16
# File 'lib/solargraph/rbs_map/path.rb', line 13

def initialize path
  super()
  loader.add path: Pathname.new(path)
end

Class Method Details

.pins(path) ⇒ Array<Pin::Base>

Parameters:

  • path (String)

Returns:



8
9
10
# File 'lib/solargraph/rbs_map/path.rb', line 8

def self.pins path
  new(path).pins
end