Sha256: bf35ee8400bbcb9cb02105850730a1b55c8bbcaa65ccd7e58a391857959de3d1

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

module Kernel

  def wx_redefine_method(mtd, &block)
    warn_lvl = $VERBOSE
    $VERBOSE = nil
    undef_method(mtd)
    define_method(mtd, &block)
  ensure
    $VERBOSE = warn_lvl
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-1.4.2 lib/wx/core/module_ext.rb
wxruby3-1.4.1 lib/wx/core/module_ext.rb
wxruby3-1.4.0 lib/wx/core/module_ext.rb