Class: Empyrean::TemplateLister
- Inherits:
-
Object
- Object
- Empyrean::TemplateLister
- Defined in:
- lib/empyrean/templatelister.rb
Class Method Summary collapse
-
.list ⇒ Object
Returns an array of available templates.
-
.print_list ⇒ Object
Prints the available templates to stdout.
Class Method Details
.list ⇒ Object
Returns an array of available templates.
25 26 27 |
# File 'lib/empyrean/templatelister.rb', line 25 def list Dir[File.join TEMPLATE_DIR, "*.html.erb"].map{ |t| File.basename t } end |
.print_list ⇒ Object
Prints the available templates to stdout.
30 31 32 |
# File 'lib/empyrean/templatelister.rb', line 30 def print_list puts list end |