Sha256: 3840f91507f6202550a15516b7359e3cc1e94b152743dcdda4251eeb67895076
Contents?: true
Size: 421 Bytes
Versions: 9
Compression:
Stored size: 421 Bytes
Contents
class Wx::MenuBar alias :wx_initialize :initialize def initialize(*args, &block) wx_initialize(*args) if block if block.arity == -1 or block.arity == 0 self.instance_eval(&block) elsif block.arity == 1 block.call(self) else Kernel.raise ArgumentError, "Block to initialize should accept a single argument or none" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems