summaryrefslogtreecommitdiff
path: root/doc/optparse/ruby/string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/optparse/ruby/string.rb')
-rw-r--r--doc/optparse/ruby/string.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/optparse/ruby/string.rb b/doc/optparse/ruby/string.rb
new file mode 100644
index 0000000000..fee84a17ea
--- /dev/null
+++ b/doc/optparse/ruby/string.rb
@@ -0,0 +1,6 @@
+require 'optparse'
+parser = OptionParser.new
+parser.on('--string=STRING', String) do |value|
+ p [value, value.class]
+end
+parser.parse!
r>2020-01-08Merge bundler-2.1.4Hiroshi SHIBATA 2019-12-15Prepare to release bundler-2.1.0Hiroshi SHIBATA 2019-11-13Merge Bundler 2.1.0.pre3 released versionHiroshi SHIBATA 2019-11-11Merge Bundler 2.1.0.pre.3Hiroshi SHIBATA 2019-09-18Fixed the rubocop warningsHiroshi SHIBATA 2019-09-01Ignore the all of warnings with inline_spec.rb of bundler examples.Hiroshi SHIBATA 2019-08-30Fix a couple of bundler issues with keyword argument separationJeremy Evans 2019-08-18[bundler/bundler] Remove unnecessary rubygems monkeypatchDavid Rodríguez 2019-08-03[bundler/bundler] bundler/inline should always install gems to system pathrobuye 2019-08-03[bundler/bundler] Normalize file:// handling in specsDavid Rodríguez 2019-06-09Merge bundler master from upstream.Hiroshi SHIBATA 2019-04-14Merge Bundler 2.1.0.pre.1 as developed version from upstream.hsbt 2018-11-02Added bundler as default gems. Revisit [Feature #12733]hsbt 2017-12-22Postponing the Bundler merge.hsbt 2017-12-12Merge 1-16-stable branch of bundler.hsbt 2017-11-01Update bundled bundler to 1.16.0.hsbt 2017-09-08Merge bundler to standard libraries.hsbt