Sha256: 0acd5473c09b24431f1db535d545be1b8b860dd292042c4ca76acb25bf5bb3be
Contents?: true
Size: 639 Bytes
Versions: 8
Compression:
Stored size: 639 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license 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
8 entries across 8 versions & 1 rubygems