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

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/core/menu_bar.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/core/menu_bar.rb