Module: Pushing::TemplateHandlers

Extended by:
ActiveSupport::Autoload
Defined in:
lib/pushing/template_handlers.rb,
lib/pushing/template_handlers/jbuilder_handler.rb

Defined Under Namespace

Classes: JbuilderHandler

Class Method Summary collapse

Class Method Details

.lookup(template) ⇒ Object



9
10
11
12
13
# File 'lib/pushing/template_handlers.rb', line 9

def self.lookup(template)
  const_get("#{template.to_s.camelize}Handler")
rescue NameError
  raise NotImplementedError.new("The template engine `#{template}' is not yet supported.")
end