sig/polyfill.rbs in rbs-2.0.0 vs sig/polyfill.rbs in rbs-2.1.0
- old
+ new
@@ -23,5 +23,83 @@
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