class Rembrandt::Formatters::Table

Public Instance Methods

format(input_code, input_language) click to toggle source
# File lib/rembrandt/formatters/table.rb, line 8
def format(input_code, input_language)
  template.render FormattedCode.new(input_code, input_language)
end
template() click to toggle source
# File lib/rembrandt/formatters/table.rb, line 12
def template
  @template ||= Tilt.new(template_path, :trim => true)
end
template_path() click to toggle source
# File lib/rembrandt/formatters/table.rb, line 16
def template_path
  File.expand_path(File.join(File.dirname(__FILE__), "./templates/table.erb"))
end