Class: Empyrean::TemplateLister

Inherits:
Object
  • Object
show all
Defined in:
lib/empyrean/templatelister.rb

Class Method Summary collapse

Class Method Details

.listObject

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

Prints the available templates to stdout.



30
31
32
# File 'lib/empyrean/templatelister.rb', line 30

def print_list
  puts list
end