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, #reset_scope, #scope, #set_inverse_instance, #stale_target?, #target_scope

Constructor Details

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

Instance Method Details

#readerObject



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

def reader
  super.first
end

#replace(value) ⇒ Object



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

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