|
1 | 1 | class Object < BasicObject |
| 2 | + def !: () -> bool |
| 3 | + def self.!: () -> bool |
| 4 | + |
| 5 | + def !=: (untyped other) -> bool |
| 6 | + def self.!=: (untyped other) -> bool |
| 7 | + |
| 8 | + def <=>: (untyped other) -> bool |
| 9 | + def self.<=>: (untyped other) -> bool |
| 10 | + |
| 11 | + def ==: (untyped other) -> bool |
| 12 | + def self.==: (untyped other) -> bool |
| 13 | + |
| 14 | + def ===: (untyped other) -> bool |
| 15 | + def self.===: (untyped other) -> bool |
| 16 | + |
| 17 | + def <: (untyped other) -> bool |
| 18 | + |
| 19 | + def <=: (untyped other) -> bool |
| 20 | + |
| 21 | + def >: (untyped other) -> bool |
| 22 | + |
| 23 | + def >=: (untyped other) -> bool |
| 24 | + |
| 25 | + def class: () -> class |
| 26 | + def self.class: () -> self |
| 27 | + |
| 28 | + def dup: () -> self |
| 29 | + def self.dup: () -> self |
| 30 | + |
| 31 | + def block_given?: () -> bool |
| 32 | + |
| 33 | + # TODO: Module |
| 34 | + def kind_of?: (Class) -> bool |
| 35 | + def self.kind_of?: (Class) -> bool |
| 36 | + |
| 37 | + alias is_a? kind_of? |
| 38 | + alias self.is_a? self.kind_of? |
| 39 | + |
| 40 | + def nil?: () -> bool |
| 41 | + def self.nil?: () -> bool |
| 42 | + |
| 43 | + # TODO: Array |
| 44 | + def p: () -> nil |
| 45 | + | [T](T arg0) -> T |
| 46 | + |
| 47 | + def print: (*untyped args) -> nil |
| 48 | + |
| 49 | + def puts: (*untyped args) -> nil |
| 50 | + |
| 51 | + # TODO Exception |
| 52 | + def raise: () -> bot |
| 53 | + | (String message) -> bot |
| 54 | + # | (Exception) -> bot |
| 55 | + # | (singleton(Exception)) -> bot |
| 56 | + # | (Exception, String message) -> bot |
| 57 | + # | (singleton(Exception), String message) -> bot |
| 58 | + |
| 59 | + # TODO: Symbol |
| 60 | + # def self.attr_reader: (*String names) -> void |
| 61 | + |
| 62 | + # TODO: Symbol |
| 63 | + # def self.attr_accessor: (*Symbol names) -> void |
| 64 | + |
| 65 | + # TODO: Module |
| 66 | + # def include: (*Module mods) -> void |
| 67 | + # def self.include: (*Module mods) -> void |
| 68 | + # |
| 69 | + # alias extend include |
| 70 | + # alias self.extend include |
| 71 | + |
| 72 | + # TODO: Array, Symbol |
| 73 | + # def self.constants: (?bool inherit) -> Array[Symbol] |
| 74 | + |
| 75 | + def self.public: () -> void |
| 76 | + |
| 77 | + def self.private: () -> void |
| 78 | + |
| 79 | + def self.protected: () -> void |
| 80 | + |
| 81 | + def sprintf: (String format, *untyped args) -> String |
| 82 | + |
| 83 | + def printf: (String format, *untyped args) -> nil |
| 84 | + |
| 85 | + def to_s: () -> String |
| 86 | + def self.to_s: () -> String |
| 87 | + |
| 88 | + alias inspect to_s |
| 89 | + alias self.inspect self.to_s |
| 90 | + |
| 91 | + def loop: () { () -> void } -> bot |
2 | 92 | end |
0 commit comments