Displaying 1 result from an estimated 1 matches for "minimalclass".
2008 Jan 04
2
use of Marshal with wxruby classes
...this has been disabled in wxruby classes?
Sorry, I picked up ruby a few days ago so I may be missing something
obvious.
Here''s a test program showing that the simple class will serialize but the
simple frame will not.
#!/usr/bin/env ruby
require ''wx''
include Wx
class MinimalClass
def initialize
@data = 1234
end
def save
File.open("dump-class","w+") do |f|
Marshal.dump(self, f)
end
end
end
class MinimalFrame < Frame
def initialize(title)
# The main application frame has no parent (nil)
super(nil, :title => titl...