Class: XmlMapper::AnonymousWrapperClassFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlmapper.rb

Overview

Factory for creating anonmyous XmlMappers

Class Method Summary collapse

Class Method Details

.get(name, &blk) ⇒ Object



769
770
771
772
773
774
775
# File 'lib/xmlmapper.rb', line 769

def self.get(name, &blk)
  Class.new do
    include XmlMapper
    tag name
    instance_eval &blk
  end
end