OptionParser::Switch::NoArgument

class OptionParser::Switch::NoArgument

Parent:
self

Switch that takes no arguments.

Public Class Methods

incompatible_argument_styles(*) Show source
# File lib/optparse.rb, line 510
def self.incompatible_argument_styles(*)
end
pattern() Show source
# File lib/optparse.rb, line 513
def self.pattern
  Object
end

Public Instance Methods

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

Raises an exception if any arguments given.

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

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部