APIdock / Ruby
/
method

on

ruby latest stable - Class: OptionParser
on(*opts, &block)
public

Add option switch and handler. See #make_switch for an explanation of parameters.

# File lib/optparse.rb, line 1474
 def on(*opts, &block)
 define(*opts, &block)
 self
 end

AltStyle によって変換されたページ (->オリジナル) /