Module: ActiveFedora::Core::ClassMethods
- Extended by:
 - Deprecation
 
- Defined in:
 - lib/active_fedora/core.rb
 
Instance Method Summary collapse
- #generated_association_methods ⇒ Object
 - 
  
    
      #to_class_uri(attrs = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  deprecated
  
  
    Deprecated. 
use to_rdf_representation instead
 - 
  
    
      #to_rdf_representation  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Returns a suitable string representation for :has_model Override this method if you want to change how this class is represented in RDF.
 
Instance Method Details
#generated_association_methods ⇒ Object
      115 116 117 118 119 120 121  | 
    
      # File 'lib/active_fedora/core.rb', line 115 def generated_association_methods @generated_association_methods ||= begin mod = const_set(:GeneratedAssociationMethods, Module.new) include mod mod end end  | 
  
#to_class_uri(attrs = nil) ⇒ Object
Deprecated. 
use to_rdf_representation instead
Returns a suitable string representation for :has_model
      132 133 134 135  | 
    
      # File 'lib/active_fedora/core.rb', line 132 def to_class_uri(attrs = nil) Deprecation.warn ActiveFedora::Core, "to_class_uri no longer acceps an argument" if attrs to_rdf_representation end  | 
  
#to_rdf_representation ⇒ Object
Returns a suitable string representation for :has_model Override this method if you want to change how this class is represented in RDF.
      126 127 128  | 
    
      # File 'lib/active_fedora/core.rb', line 126 def to_rdf_representation name end  |