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.
1 parent 9c78283 commit 8c36b0cCopy full SHA for 8c36b0c
lib/syntax_suggest/mini_stringio.rb
@@ -5,6 +5,10 @@ module SyntaxSuggest
5
#
6
# Acts like a StringIO with reduced API, but without having to require that
7
# class.
8
+ #
9
+ # The original codebase emitted directly to $stderr, but now SyntaxError#detailed_message
10
+ # needs a string output. To accomplish that we kept the original print infrastructure in place and
11
+ # added this class to accumulate the print output into a string.
12
class MiniStringIO
13
EMPTY_ARG = Object.new
14
0 commit comments