[前][次][番号順一覧][スレッド一覧]

ruby-changes:24940

From: zzak <ko1@a...>
Date: Thu, 20 Sep 2012 07:17:40 +0900 (JST)
Subject: [ruby-changes:24940] zzak:r36992 (trunk): * ext/ripper/lib/ripper.rb: Documentation for Ripper.

zzak	2012-09-20 07:17:16 +0900 (Thu, 20 Sep 2012)

  New Revision: 36992

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36992

  Log:
    * ext/ripper/lib/ripper.rb: Documentation for Ripper.
      +:void_stmt+ is meaningless
      [Bug #6929] [ruby-core:47507]

  Modified files:
    trunk/ChangeLog
    trunk/ext/ripper/lib/ripper.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36991)
+++ ChangeLog	(revision 36992)
@@ -1,3 +1,9 @@
+Thu Sep 20 07:15:00 2012  Zachary Scott  <zzak@r...>
+
+	* ext/ripper/lib/ripper.rb: Documentation for Ripper.
+	  +:void_stmt+ is meaningless
+	  [Bug #6929] [ruby-core:47507]
+
 Thu Sep 20 07:05:00 2012  Zachary Scott  <zzak@r...>
 
 	* lib/csv.rb (Object#CSV, Array#to_csv, String#parse_csv): 
Index: ext/ripper/lib/ripper.rb
===================================================================
--- ext/ripper/lib/ripper.rb	(revision 36991)
+++ ext/ripper/lib/ripper.rb	(revision 36992)
@@ -20,19 +20,18 @@
 #   require 'ripper'
 #   require 'pp'
 #
-#   pp Ripper.sexp('def hello(world); "Hello, #{world}!"; end')
+#   pp Ripper.sexp('def hello(world) "Hello, #{world}!"; end')
 #     #=> [:program,
 #          [[:def,
 #            [:@ident, "hello", [1, 4]],
 #            [:paren,
-#             [:params, [[:@ident, "world", [1, 10]]], nil, nil, nil, nil, nil, nil]],
+#             [:params, [[:@ident, "world", [1, 10]]], nil, nil, nil, nil]],
 #            [:bodystmt,
-#             [[:void_stmt],
-#              [:string_literal,
+#             [[:string_literal,
 #               [:string_content,
-#                [:@tstring_content, "Hello, ", [1, 19]],
-#                [:string_embexpr, [[:var_ref, [:@ident, "world", [1, 28]]]]],
-#                [:@tstring_content, "!", [1, 34]]]]],
+#                [:@tstring_content, "Hello, ", [1, 18]],
+#                [:string_embexpr, [[:var_ref, [:@ident, "world", [1, 27]]]]],
+#                [:@tstring_content, "!", [1, 33]]]]],
 #             nil,
 #             nil,
 #             nil]]]]
@@ -47,7 +46,7 @@
 # which contains the full definition of the method.
 #
 # In our case, we're simply returning a String, so next we have the
-# +:void_stmt+ followed by a +:string_literal+.
+# +:string_literal+ expression.
 #
 # Within our +:string_literal+ you'll notice two <code>@tstring_content</code>,
 # this is the literal part for <code>Hello, </code> and <code>!</code>. Between

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]