Class: Jekyll::LiquidRenderer::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/liquid_renderer/table.rb

Constant Summary collapse

GAUGES =
[:count, :bytes, :time].freeze

Instance Method Summary collapse

Constructor Details

#initialize(stats) ⇒ Table

Returns a new instance of Table.


8
9
10
# File 'lib/jekyll/liquid_renderer/table.rb', line 8

def initialize(stats)
  @stats = stats
end

Instance Method Details

#to_s(num_of_rows = 50) ⇒ Object


12
13
14
# File 'lib/jekyll/liquid_renderer/table.rb', line 12

def to_s(num_of_rows = 50)
  Jekyll::Profiler.tabulate(data_for_table(num_of_rows))
end