Module: FamilySearch::Gedcomx::SuperCoercion

Included in:
AtomContent, AtomExtensibleElement, ExtensibleData, Merge, MergeAnalysis, MergeConflict
Defined in:
lib/familysearch/gedcomx/super_coercion.rb

Overview

This is basically the Hashie::Extensions::Coercion module, but this needed to be able to support things like this:

coerce_key :persons, [Person]

This allows the objects inside of arrays to be parsed

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



34
35
36
37
# File 'lib/familysearch/gedcomx/super_coercion.rb', line 34

def self.included(base)
  base.send :extend, ClassMethods
  base.send :include, InstanceMethods
end