Class: ActiveFedora::Associations::SingularRDF

Inherits:
RDF show all
Defined in:
lib/active_fedora/associations/singular_rdf.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Association

#inversed, #owner, #reflection, #target

Instance Method Summary collapse

Methods inherited from RDF

#destroy

Methods inherited from SingularAssociation

#build, #create, #create!, #writer

Methods inherited from Association

#association_scope, #initialize, #initialize_attributes, #load_target, #loaded!, #loaded?, #reload, #reset, #scope, #set_inverse_instance, #stale_target?, #target_scope

Constructor Details

This class inherits a constructor from ActiveFedora::Associations::Association

Instance Method Details

#readerObject


9
10
11
# File 'lib/active_fedora/associations/singular_rdf.rb', line 9

def reader
  super.first
end

#replace(value) ⇒ Object


5
6
7
# File 'lib/active_fedora/associations/singular_rdf.rb', line 5

def replace(value)
  super(Array(value))
end