Class: Manacle::Proxy::Templates::Factory
- Inherits:
-
Object
- Object
- Manacle::Proxy::Templates::Factory
- Defined in:
- lib/manacle/proxy/templates.rb
Instance Method Summary collapse
- #build(obj) ⇒ Object
-
#initialize ⇒ Factory
constructor
A new instance of Factory.
Constructor Details
Instance Method Details
#build(obj) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/manacle/proxy/templates.rb', line 15 def build(obj) matcher = Punchout::Matcher::Klass.new(obj.class) built = @factory.build(obj) Punchout::Puncher::Matchable.new(matcher, built) end |