class Foo
Public Class Methods
change_default(hash)
click to toggle source
# File lib/numru/misc/keywordopt.rb, line 414 def self.change_default(hash) @@opt_hoge.set(hash) end
Public Instance Methods
hoge(regular_arg1, regular_arg2, options=nil)
click to toggle source
# File lib/numru/misc/keywordopt.rb, line 417 def hoge(regular_arg1, regular_arg2, options=nil) opt = @@opt_hoge.interpret(options) if opt['help'] puts "* Description of options:\n" + @@opt_hoge.help puts ' Current values='+opt.inspect raise Misc::HelpMessagingException, '** show help message and raise **' end # do what you want below # (options are set in the Hash opt: opt['flag'] and opt['number']) p opt end