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

Version Path
active-fedora-12.2.4 lib/active_fedora/ldp_resource.rb
active-fedora-12.2.3 lib/active_fedora/ldp_resource.rb
active-fedora-13.2.3 lib/active_fedora/ldp_resource.rb
active-fedora-13.2.2 lib/active_fedora/ldp_resource.rb
active-fedora-13.2.0 lib/active_fedora/ldp_resource.rb
active-fedora-13.1.3 lib/active_fedora/ldp_resource.rb
active-fedora-12.2.2 lib/active_fedora/ldp_resource.rb
active-fedora-12.2.1 lib/active_fedora/ldp_resource.rb
active-fedora-12.0.3 lib/active_fedora/ldp_resource.rb
active-fedora-13.1.2 lib/active_fedora/ldp_resource.rb
active-fedora-13.1.1 lib/active_fedora/ldp_resource.rb
active-fedora-13.1.0 lib/active_fedora/ldp_resource.rb
active-fedora-13.0.0 lib/active_fedora/ldp_resource.rb
active-fedora-12.1.1 lib/active_fedora/ldp_resource.rb
active-fedora-12.1.0 lib/active_fedora/ldp_resource.rb
active-fedora-12.0.2 lib/active_fedora/ldp_resource.rb
active-fedora-12.0.1 lib/active_fedora/ldp_resource.rb
active-fedora-12.0.0 lib/active_fedora/ldp_resource.rb