Sha256: 673ac73df87730ffd57de92f9dcc8b1f94fe57a1ea30bb1fe5de0e9b8a6d9208

Contents?: true

Size: 847 Bytes

Versions: 3

Compression:

Stored size: 847 Bytes

Contents

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


module Wx

  class PersistentObject < ::Object

    # Save the specified value using the given name.
    # @param [String] name The name of the value in the configuration file.
    # @param [Object] value The value to save, currently must be a type supported by wxConfig.
    # @return [Boolean] true if the value was saved or false if an error occurred.
    def save_value(name, value); end
    protected :save_value

    # Restore a value saved by {#save_value}.
    # @param [String] name The name of the value in the configuration file.
    # @return [Object,nil] The value if successfully read, nil otherwise
    def restore_value(name); end
    protected :restore_value

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/doc/persistent_object.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/doc/persistent_object.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/doc/persistent_object.rb