Module: Manacle::Proxy::Templates
- Extended by:
- Punchout::Fabricable
- Defined in:
- lib/manacle/proxy/templates.rb
Defined Under Namespace
Classes: Factory
Class Method Summary collapse
Class Method Details
.factory ⇒ Object
27 28 29 |
# File 'lib/manacle/proxy/templates.rb', line 27 def factory @factory ||= Factory.new end |
.for(obj) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/manacle/proxy/templates.rb', line 31 def for(obj) res = puncher.punch(obj.class) unless res.kind_of?(Class) raise end res end |