search for: args_def

Displaying 1 result from an estimated 1 matches for "args_def".

Did you mean: arg_dev
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
...you think about this proposal as this can be applicable to ToolBar#add_tool as well. So here is the proposal with a simple test application : require ''wx'' module Wx # Return the real arguments from the specified arguments definition and # the supplied mixed arguments # args_def : the ordered list of arguments with default value # e.g. [ [:proportion, 0], [:flag, 0], [:border, 0] ] def self.args_as_list(args_def, *mixed_args) # get keyword arguments from mixed_args if supplied, else empty kwa = mixed_args.last.kind_of?(Hash) ? mixed_args.pop : {} out_args...