summaryrefslogtreecommitdiff
path: root/doc/ruby
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2021-04-06 13:55:21 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-28 20:13:38 +0900
commit05e9efa323eb99727b099590c1d40d23f38443ef (patch)
tree77c1a3f76769200756afd0723f370c89a5415f27 /doc/ruby
parent8844eba4882e2a1627d26ea54a481b582640f739 (diff)
[ruby/optparse] More on tutorial (https://github.com/ruby/optparse/pull/9)
* More on tutorial * More on tutorial * More on tutorial * More on tutorial: clearer example output https://github.com/ruby/optparse/commit/84dfd92d2a
Diffstat (limited to 'doc/ruby')
-rw-r--r--doc/ruby/argv.rb2
-rw-r--r--doc/ruby/long_names.rb9
-rw-r--r--doc/ruby/mixed_names.rb9
-rw-r--r--doc/ruby/short_names.rb9
4 files changed, 0 insertions, 29 deletions
diff --git a/doc/ruby/argv.rb b/doc/ruby/argv.rb
deleted file mode 100644
index 12495cfa1f..0000000000
--- a/doc/ruby/argv.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-p ARGV
-
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!
diff --git a/doc/ruby/mixed_names.rb b/doc/ruby/mixed_names.rb
deleted file mode 100644
index b8f3ac9819..0000000000
--- a/doc/ruby/mixed_names.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'optparse'
-parser = OptionParser.new
-parser.on('-x', '--xxx') do |option|
- p "--xxx #{option}"
-end
-parser.on('-y', '--y1%') do |option|
- p "--y1% #{option}"
-end
-parser.parse!
diff --git a/doc/ruby/short_names.rb b/doc/ruby/short_names.rb
deleted file mode 100644
index 0dc35b789b..0000000000
--- a/doc/ruby/short_names.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'optparse'
-parser = OptionParser.new
-parser.on('-x') do |option|
- p "-x #{option}"
-end
-parser.on('-1', '-%') do |option|
- p "-1 or -% #{option}"
-end
-parser.parse!