Sha256: cbd973337d9b7a3b5eb9a48771c3189fc6f067a2422eff1d292a5bca7b6ccd62
Contents?: true
Size: 560 Bytes
Versions: 18
Compression:
Stored size: 560 Bytes
Contents
module ActiveFedora class LdpResource < Ldp::Resource::RdfSource def build_empty_graph graph_class.new(subject_uri) end def self.graph_class ActiveTriples::Resource end def graph_class self.class.graph_class end # Don't dump @client, it has a proc and thus can't be serialized. def marshal_dump (instance_variables - [:@client]).map { |name| [name, instance_variable_get(name)] } end def marshal_load(data) data.each { |name, val| instance_variable_set(name, val) } end end end
Version data entries
18 entries across 18 versions & 1 rubygems