Sha256: 6021804d8a45d0293bf243573437fee726a98e8d282ab65c33ab2fedc6382573

Contents?: true

Size: 1.57 KB

Versions: 3

Compression:

Stored size: 1.57 KB

Contents

module RBS
  class EnvironmentLoader
    class UnknownLibraryNameError < StandardError
      attr_reader name: String

      def initialize: (name: String) -> void
    end

    class LibraryPath
      attr_reader name: String
      attr_reader path: Pathname

      def initialize: (name: String, path: Pathname) -> void
    end

    class GemPath
      attr_reader name: String
      attr_reader version: String?
      attr_reader path: Pathname

      def initialize: (name: String, version: String?, path: Pathname) -> void
    end

    STDLIB_ROOT: Pathname

    type path = Pathname | LibraryPath | GemPath

    attr_reader paths: Array[path]
    attr_reader stdlib_root: Pathname
    attr_reader gem_vendor_path: Pathname?

    def self.gem_sig_path: (String, String?) -> Pathname?

    def initialize: (?stdlib_root: Pathname, ?gem_vendor_path: Pathname?) -> void

    def add: (path: Pathname?) -> void
           | (library: String?) -> void

    def self.parse_library: (String) -> [String, String?]

    def stdlib?: (String) -> Pathname?

    def gem?: (String, String?) -> Pathname?

    def each_signature: (Pathname, ?immediate: bool) { (Pathname) -> void } -> void
                      | (Pathname, ?immediate: bool) -> Enumerator[Pathname, void]

    def each_library_path: { (path, Pathname) -> void } -> void

    def no_builtin!: (?bool) -> self

    def no_builtin?: () -> bool

    def each_decl: () { (AST::Declarations::t, Buffer, Pathname, path | :stdlib) -> void } -> void

    def load: (env: Environment) -> Array[[AST::Declarations::t, Pathname, path | :stdlib]]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbs-0.14.0 sig/environment_loader.rbs
rbs-0.13.1 sig/environment_loader.rbs
rbs-0.13.0 sig/environment_loader.rbs