diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/optparse.rb | 12 |
2 files changed, 10 insertions, 9 deletions
@@ -1,6 +1,11 @@ +Fri Dec 8 18:11:18 2006 NAKAMURA Usaku <usa@ruby-lang.org> + + * lib/optparse.rb: cannot put :nodoc: before method definition. + put after it. + Fri Dec 8 17:00:13 2006 NAKAMURA Usaku <usa@ruby-lang.org> - * bin/rdoc: ues File.exist? instead of File.exists. + * bin/rdoc: ues File.exist? instead of File.exists?. Thu Dec 7 23:50:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org> diff --git a/lib/optparse.rb b/lib/optparse.rb index 8cb29c83e..4cab6928b 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -398,8 +398,7 @@ class OptionParser self end - # :nodoc: - def add_banner(to) + def add_banner(to) # :nodoc: unless @short or @long s = desc.join to << " [" + s + "]..." unless s.empty? @@ -407,8 +406,7 @@ class OptionParser to end - # :nodoc: - def match_nonswitch?(str) + def match_nonswitch?(str) # :nodoc: @pattern =~ str unless @short or @long end @@ -642,8 +640,7 @@ class OptionParser end end - # :nodoc: - def add_banner(to) + def add_banner(to) # :nodoc: list.each do |opt| if opt.respond_to?(:add_banner) opt.add_banner(to) @@ -1243,8 +1240,7 @@ class OptionParser parse_in_order(argv, &nonopt) end - # :nodoc: - def parse_in_order(argv = default_argv, setter = nil, &nonopt) + def parse_in_order(argv = default_argv, setter = nil, &nonopt) # :nodoc: opt, arg, val, rest = nil nonopt ||= proc {|a| throw :terminate, a} argv.unshift(arg) if arg = catch(:terminate) { |