Class: Rembrandt::Formatters::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/rembrandt/formatters/table.rb

Instance Method Summary collapse

Instance Method Details

#format(input_code, input_language) ⇒ Object



8
9
10
# File 'lib/rembrandt/formatters/table.rb', line 8

def format(input_code, input_language)
  template.render FormattedCode.new(input_code, input_language)
end

#templateObject



12
13
14
# File 'lib/rembrandt/formatters/table.rb', line 12

def template
  @template ||= Tilt.new('./lib/rembrandt/formatters/templates/table.erb', :trim => true)
end