Class: HappyMapper::AnonymousWrapperClassFactory

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

Overview

Factory for creating anonmyous HappyMappers

Class Method Summary collapse

Class Method Details

.get(name, &blk) ⇒ Object


597
598
599
600
601
602
603
# File 'lib/happymapper.rb', line 597

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