Sha256: e4533a810e6eba8e2b3901df0e7843f572d06f66997b52eb9f1d8789e1477526

Contents?: true

Size: 150 Bytes

Versions: 13

Compression:

Stored size: 150 Bytes

Contents

require 'optparse'
parser = OptionParser.new
parser.on('--false_class=FALSE_CLASS', FalseClass) do |value|
  p [value, value.class]
end
parser.parse!

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
optparse-0.6.0 doc/optparse/ruby/false_class.rb
optparse-0.5.0 doc/optparse/ruby/false_class.rb
cli-option_parser.rb-0.6.0 doc/optparse/ruby/false_class.rb
cli-option_parser.rb-0.5.3 doc/optparse/ruby/false_class.rb
cli-option_parser.rb-0.5.2 doc/optparse/ruby/false_class.rb
cmd-optparse.rb-0.5.2 doc/optparse/ruby/false_class.rb
cmd-optparse.rb-0.5.0 doc/optparse/ruby/false_class.rb
cmd-optparse.rb-0.1.1 doc/optparse/ruby/false_class.rb
cmd-optparse.rb-0.1.0 doc/optparse/ruby/false_class.rb
optparse-0.4.0 doc/optparse/ruby/false_class.rb
optparse-0.3.1 doc/optparse/ruby/false_class.rb
optparse-0.3.0 doc/optparse/ruby/false_class.rb
optparse-0.2.0 doc/optparse/ruby/false_class.rb