Class: ActiveFedora::WithMetadata::DefaultMetadataClassFactory
- Inherits:
-
Object
- Object
- ActiveFedora::WithMetadata::DefaultMetadataClassFactory
- Defined in:
- lib/active_fedora/with_metadata/default_metadata_class_factory.rb
Class Method Summary collapse
Class Method Details
.build(parent, &block) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/active_fedora/with_metadata/default_metadata_class_factory.rb', line 10 def build(parent, &block) create_class(parent).tap do |resource_class| .each do |schema| resource_class.apply_schema(schema, ) end resource_class.exec_block(&block) if block_given? end end |