* lib/optparse.rb: nodoc Object::Version and SPLAT_PROC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d6d4573782
commit
ba84738d44
@ -1,3 +1,7 @@
|
|||||||
|
Mon May 20 03:35:26 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* lib/optparse.rb: nodoc Object::Version and SPLAT_PROC
|
||||||
|
|
||||||
Mon May 20 03:16:52 2013 Zachary Scott <zachary@zacharyscott.net>
|
Mon May 20 03:16:52 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
* lib/pp.rb: Document PP::ObjectMixin [Fixes GH-312]
|
* lib/pp.rb: Document PP::ObjectMixin [Fixes GH-312]
|
||||||
|
@ -1093,7 +1093,7 @@ XXX
|
|||||||
end
|
end
|
||||||
private :notwice
|
private :notwice
|
||||||
|
|
||||||
SPLAT_PROC = proc {|*a| a.length <= 1 ? a.first : a}
|
SPLAT_PROC = proc {|*a| a.length <= 1 ? a.first : a} # :nodoc:
|
||||||
#
|
#
|
||||||
# Creates an OptionParser::Switch from the parameters. The parsed argument
|
# Creates an OptionParser::Switch from the parameters. The parsed argument
|
||||||
# value is passed to the given block, where it can be processed.
|
# value is passed to the given block, where it can be processed.
|
||||||
@ -1936,7 +1936,7 @@ end
|
|||||||
ARGV.extend(OptionParser::Arguable)
|
ARGV.extend(OptionParser::Arguable)
|
||||||
|
|
||||||
if $0 == __FILE__
|
if $0 == __FILE__
|
||||||
Version = OptionParser::Version
|
Version = OptionParser::Version # :nodoc:
|
||||||
ARGV.options {|q|
|
ARGV.options {|q|
|
||||||
q.parse!.empty? or print "what's #{ARGV.join(' ')}?\n"
|
q.parse!.empty? or print "what's #{ARGV.join(' ')}?\n"
|
||||||
} or abort(ARGV.options.to_s)
|
} or abort(ARGV.options.to_s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user