Method: XMLMapping::ClassMethods#has_many

Defined in:
lib/xmlmapping.rb

#has_many(attribute, options = {}) ⇒ Object



146
147
148
149
# File 'lib/xmlmapping.rb', line 146

def has_many(attribute, options = {})
  options[:cardinality] = :many
  add(attribute, :element, options)
end