diff options
Diffstat (limited to 'doc/ruby/proc.rb')
-rw-r--r-- | doc/ruby/proc.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/doc/ruby/proc.rb b/doc/ruby/proc.rb deleted file mode 100644 index 9c669fdc92..0000000000 --- a/doc/ruby/proc.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'optparse' -parser = OptionParser.new -parser.on( - '--xxx', - 'Option with no argument', - ->(value) {p ['Handler proc for -xxx called with value:', value]} -) -parser.on( - '--yyy YYY', - 'Option with required argument', - ->(value) {p ['Handler proc for -yyy called with value:', value]} -) -parser.parse! |