Class: Potassium::TemplateFinder

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

Constant Summary collapse

TEMPLATES =
{
  default: Potassium::ApplicationGenerator
}

Instance Method Summary collapse

Instance Method Details

#default_templateObject



7
8
9
# File 'lib/potassium/template_finder.rb', line 7

def default_template
  find(:default)
end

#find(name) ⇒ Object



11
12
13
# File 'lib/potassium/template_finder.rb', line 11

def find(name)
  TEMPLATES.fetch(name)
end