mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow spaces around parameter to define_method_under
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a838eb5c65
commit
156ea41fa2
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Sep 9 11:46:18 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_classes): Allow
|
||||||
|
spaces aroun parameter to define_method_under (James Buck)
|
||||||
|
|
||||||
Wed Sep 8 18:44:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Sep 8 18:44:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.
|
* ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.
|
||||||
|
|
|
@ -271,11 +271,11 @@ module RDoc
|
||||||
handle_class_module(var_name, "class", class_name, parent, nil)
|
handle_class_module(var_name, "class", class_name, parent, nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
@body.scan(/(\w+)\s* = \s*rb_define_module_under
|
@body.scan(/(\w+)\s* = \s*rb_define_module_under\s*
|
||||||
\(
|
\(
|
||||||
\s*(\w+),
|
\s*(\w+),
|
||||||
\s*"(\w+)"
|
\s*"(\w+)"
|
||||||
\)/mx) do
|
\s*\)/mx) do
|
||||||
|
|
||||||
|var_name, in_module, class_name|
|
|var_name, in_module, class_name|
|
||||||
handle_class_module(var_name, "module", class_name, nil, in_module)
|
handle_class_module(var_name, "module", class_name, nil, in_module)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue