Ruby 2.4

OptionParser::Switch::NoArgument

class OptionParser::Switch::NoArgument

父类:self

不带任何参数的开关。

公共类方法

incompatible_argument_styles(*) Show source

# File lib/optparse.rb, line 654 def self.incompatible_argument_styles(*) end

pattern() Show source

# File lib/optparse.rb, line 657 def self.pattern Object end

公共实例方法

parse(arg, argv) { |NeedlessArgument, arg| ... } Show source

如果提供任何参数,则引发异常。

# File lib/optparse.rb, line 649 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end