Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stdlib/json/0/json.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ end

interface _JsonWrite
def write: (String json) -> void

def flush: () -> void
end

interface _JsonReadableIO
Expand Down
4 changes: 3 additions & 1 deletion test/stdlib/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def if_ruby31(&block)

module WithStdlibAliases
def with_timeout(seconds: 1, nanoseconds: 0)
unless block_given?
unless block_given?
return RBS::UnitTest::Convertibles::WithAliases::WithEnum.new(
to_enum(__method__, seconds: seconds, nanoseconds: nanoseconds)
)
Expand Down Expand Up @@ -105,6 +105,8 @@ def rand(max)
class JsonWrite
def write(_str)
end

def flush = nil
end

class JsonToWritableIO
Expand Down
Loading