[ruby/syntax_suggest] Explain why class exists
https://github.com/ruby/syntax_suggest/commit/8c36b0cb35
This commit is contained in:
parent
03a77c03eb
commit
3a547e2539
@ -5,6 +5,10 @@ module SyntaxSuggest
|
|||||||
#
|
#
|
||||||
# Acts like a StringIO with reduced API, but without having to require that
|
# Acts like a StringIO with reduced API, but without having to require that
|
||||||
# class.
|
# class.
|
||||||
|
#
|
||||||
|
# The original codebase emitted directly to $stderr, but now SyntaxError#detailed_message
|
||||||
|
# needs a string output. To accomplish that we kept the original print infrastructure in place and
|
||||||
|
# added this class to accumulate the print output into a string.
|
||||||
class MiniStringIO
|
class MiniStringIO
|
||||||
EMPTY_ARG = Object.new
|
EMPTY_ARG = Object.new
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user