class Dizby::UnknownObject
Attributes
buf[R]
name[R]
Public Class Methods
_load(str)
click to toggle source
# File lib/dizby/distributed/unknown.rb, line 25 def self._load(str) Marshal.load(str) rescue NameError, ArgumentError UnknownObject.new($!, str) end
new(err, buf)
click to toggle source
# File lib/dizby/distributed/unknown.rb, line 11 def initialize(err, buf) @name = case err.to_s when /uninitialized constant (\S+)/ $~[1] when %r{undefined class/module (\S+)} $~[1] end @buf = buf end
Public Instance Methods
_dump(_)
click to toggle source
# File lib/dizby/distributed/unknown.rb, line 31 def _dump(_) Marshal.dump(@buf) end
exception()
click to toggle source
# File lib/dizby/distributed/unknown.rb, line 39 def exception UnknownObjectError.new self end
reload()
click to toggle source
# File lib/dizby/distributed/unknown.rb, line 35 def reload self.class._load @buf end