Issue #6929 has been updated by Eregon (Benoit Daloze).


zzak: Good work!

Just a little note, when you say:
"# In our case, we're simply returning a String, so next we have the
 # +:void_stmt+ followed by a +:string_literal+."

The :void_stmt seems to be due only to the extra ";" in the code string.
Using 'def hello(world) "Hello, #{world}!"; end' won't produce the :void_stmt,
which I think is more of a parser artifact than it is meaningful in this context.

----------------------------------------
Bug #6929: Documentation for Ripper
https://bugs.ruby-lang.org/issues/6929#change-29276

Author: zzak (Zachary Scott)
Status: Closed
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: 2.0.0
ruby -v: 2.0.0


I've added a patch to improve the documentation for the standard library Ripper.

As always, feedback welcome.


-- 
http://bugs.ruby-lang.org/