Class: Gemical::Format
- Inherits:
-
Commander::HelpFormatter::Terminal
- Object
- Commander::HelpFormatter::Terminal
- Gemical::Format
- 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.("../format/#{name}.erb", __FILE__) ERB.new File.read(path), nil, '-' end |