Sha256: 889891f4239c215039ea8c6c7b82b49ca7e2c231d1069f64ac0378643bc1b6d6

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

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


module Wx

  class StandardPaths

    class << self

      wx_get = instance_method :get
      wx_redefine_method :get do
        # cache the global singleton
        @instance ||= wx_get.bind(self).call
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-1.5.1 lib/wx/core/standard_paths.rb
wxruby3-1.5.0 lib/wx/core/standard_paths.rb
wxruby3-1.4.2 lib/wx/core/standard_paths.rb
wxruby3-1.4.1 lib/wx/core/standard_paths.rb
wxruby3-1.4.0 lib/wx/core/standard_paths.rb