Module: ToHtml

Included in:
Grit::Commit, Grit::Diff
Defined in:
lib/plugins/html.rb,
lib/plugins/html.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



4
5
6
7
# File 'lib/plugins/html.rb', line 4

def to_html
   filename = self.class.to_s.gsub(/.*::/,'').downcase+'.html.erb'
   template = File.join(File.dirname(__FILE__),'html',filename)
end