diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-11 09:03:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-11 09:03:36 +0900 |
commit | f89486965b64bc04ed49073fd5ef48390e0026d2 (patch) | |
tree | ecfcd779d8c3ea9cf479edd21865dff98aeec0b9 /doc/ruby/explicit_hash_values.rb | |
parent | cb01437c24ce3f819ef15947748e3c723b9c52c6 (diff) |
[ruby/optparse] Moved rdoc files to doc/optparse
https://github.com/ruby/optparse/commit/cccb28e0de
Diffstat (limited to 'doc/ruby/explicit_hash_values.rb')
-rw-r--r-- | doc/ruby/explicit_hash_values.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/doc/ruby/explicit_hash_values.rb b/doc/ruby/explicit_hash_values.rb deleted file mode 100644 index 9c9e6a48ed..0000000000 --- a/doc/ruby/explicit_hash_values.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'optparse' -parser = OptionParser.new -parser.on('-xXXX', {foo: 0, bar: 1}, 'Values for required argument' ) do |value| - p ['-x', value] -end -parser.on('-y [YYY]', {baz: 2, bat: 3}, 'Values for optional argument') do |value| - p ['-y', value] -end -parser.parse! |