Class: Gemical::Format

Inherits:
Commander::HelpFormatter::Terminal
  • Object
show all
Defined in:
lib/gemical/format.rb

Instance Method Summary collapse

Instance Method Details

#template(name) ⇒ Object



3
4
5
6
# File 'lib/gemical/format.rb', line 3

def template name
  path = File.expand_path("../format/#{name}.erb", __FILE__)
  ERB.new File.read(path), nil, '-'
end