Sha256: ff68b3ff5763cc8a2ee2d812bab37f79427060f0d3185f3196733aca61714950
Contents?: true
Size: 1.27 KB
Versions: 6
Compression:
Stored size: 1.27 KB
Contents
interface _ToI def to_i: -> Integer end interface _ToInt def to_int: -> Integer end interface _ToS def to_s: -> String end interface _ToStr def to_str: () -> String end interface _ToHash[K, V] def to_hash: () -> Hash[K, V] end interface _ToProc def to_proc: () -> untyped end interface _ToPath def to_path: () -> String end interface _Each[out A] def each: { (A) -> void } -> void end interface _Reader def read: (?int length, ?string outbuf) -> String? end interface _Writer # Writes the +data+ string. Returns the number of bytes written def write: (*_ToS data) -> Integer end interface _Rewindable # Positions the stream to the beginning of input, resetting `lineno` to zero. # def rewind: () -> Integer end interface _ToIO def to_io: () -> IO end interface _Exception def exception: () -> Exception | (String arg0) -> Exception end type int = Integer | _ToInt type real = Integer | Float | Rational type string = String | _ToStr type encoding = Encoding | string type io = IO | _ToIO # `boolish` is a type for documentation. # It means the value of this type is only for testing a condition. # Unlike `bool` type, it doesn't require the value is one of `true` or `false`. # Any Ruby object can have `boolish` type. # type boolish = top
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rbs-0.20.1 | core/builtin.rbs |
rbs-0.20.0 | core/builtin.rbs |
rbs-0.19.0 | core/builtin.rbs |
rbs-0.18.1 | core/builtin.rbs |
rbs-0.18.0 | core/builtin.rbs |
rbs-0.17.0 | core/builtin.rbs |