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



796
797
798
799
800
801
802
# File 'lib/xmlmapper.rb', line 796

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