APIdock / Ruby
/
method

accept

ruby latest stable - Class: OptionParser
accept(*args, &blk)
public

Directs to accept specified class t. The argument string is passed to the block in which it should be converted to the desired class.

t

Argument class specifier, any object including Class.

pat

Pattern for argument, defaults to t if it responds to match.

accept (t, pat, &block)
# File lib/optparse.rb, line 1095
 def accept(*args, &blk) top.accept(*args, &blk) end

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