We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 514eafa + 729e131 commit 797eafeCopy full SHA for 797eafe
stdlib/json/0/json.rbs
@@ -8,6 +8,8 @@ end
8
9
interface _JsonWrite
10
def write: (String json) -> void
11
+
12
+ def flush: () -> void
13
end
14
15
interface _JsonReadableIO
test/stdlib/test_helper.rb
@@ -52,7 +52,7 @@ def if_ruby31(&block)
52
53
module WithStdlibAliases
54
def with_timeout(seconds: 1, nanoseconds: 0)
55
- unless block_given?
+ unless block_given?
56
return RBS::UnitTest::Convertibles::WithAliases::WithEnum.new(
57
to_enum(__method__, seconds: seconds, nanoseconds: nanoseconds)
58
)
@@ -105,6 +105,8 @@ def rand(max)
105
class JsonWrite
106
def write(_str)
107
108
109
+ def flush = nil
110
111
112
class JsonToWritableIO
0 commit comments