class Manacle::Proxy::Templates::Factory

Public Class Methods

new() click to toggle source
# File lib/manacle/proxy/templates.rb, line 11
def initialize
  @factory = Manacle::Proxy::Template::Factory.new
end

Public Instance Methods

build(obj) click to toggle source
# 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