summaryrefslogtreecommitdiff
path: root/doc/ruby/long_names.rb
diff options
context:
space:
mode:
authorBurdette Lamar <[email protected]>2021-04-06 13:55:21 -0500
committerNobuyoshi Nakada <[email protected]>2021-04-08 12:11:32 +0900
commitfe72cff487283dbaadb9757e74f00291d772cb6f (patch)
tree17f23b59af67fee6f73a42c6e49c209343ba3152 /doc/ruby/long_names.rb
parent2b66b224793915adb8ed27308e9db26fc273635b (diff)
[ruby/optparse] More on tutorial (#9)
* More on tutorial: clearer example output https://github.com/ruby/optparse/commit/84dfd92d2a
Diffstat (limited to 'doc/ruby/long_names.rb')
-rw-r--r--doc/ruby/long_names.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/doc/ruby/long_names.rb b/doc/ruby/long_names.rb
deleted file mode 100644
index e36152d097..0000000000
--- a/doc/ruby/long_names.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'optparse'
-parser = OptionParser.new
-parser.on('--xxx') do |option|
- p "--xxx #{option}"
-end
-parser.on('--y1%', '--z2#') do |option|
- p "--y1% or --z2# #{option}"
-end
-parser.parse!