Sha256: 08a94b20a765b8edd0aea3bed64e602e348d87695058b5239c8a26b0dc431515

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

module Gem
  class Specification
    attr_reader version (): Version

    attr_reader gem_dir (): String

    def self.find_by_name: (String name, ?String? version) -> instance
  end
end

module Bundler
  class LockfileParser
    def initialize: (String) -> void
    def specs: () -> Array[LazySpecification]
  end

  class LazySpecification
    def name: () -> String
    def version: () -> String
  end
end

module RDoc
  class Store
    def initialize: (?String? path, ?Symbol? type) -> void

    def find_class_or_module: (String) -> ClassModule?

    def load_all: () -> void
  end

  module RI
    module Paths
      type path_type = :system | :site | :home | :gem | :extra

      type gem_filter = :latest | :all

      def self.each: (?bool system, ?bool site, ?bool home, ?gem_filter | false gems, *String extra_dirs) { (String, path_type) -> void } -> void
    end
  end

  class CodeObject
    def comment: () -> RDoc::Markup::Document
  end

  class Context < CodeObject

  end

  class ClassModule < Context
    def constants: () -> Array[Constant]

    def method_list: () -> Array[AnyMethod]

    def attributes: () -> Array[Attr]
  end

  class Constant < CodeObject
    def name: () -> String
  end

  class AnyMethod < MethodAttr
    def arglists: () -> String?

    def callseq: () -> String?
  end

  class MethodAttr < CodeObject
    attr_reader name: String

    attr_reader singleton: bool

    attr_reader is_alias_for: MethodAttr?

    attr_reader call_seq: String

    attr_reader arglists: String
  end

  class Attr < MethodAttr
    attr_accessor rw: "RW" | "R" | "W"
  end

  module Markup
    class Document
      include Enumerable[Document]

      def each: () { (Document) -> void } -> void
              | () -> Enumerator[Document, void]

      def file: () -> String?

      def accept: (untyped) -> String
    end

    class ToMarkdown
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbs-2.6.0 sig/polyfill.rbs
rbs-2.5.1 sig/polyfill.rbs
rbs-2.5.0 sig/polyfill.rbs
rbs-2.4.0 sig/polyfill.rbs