struct

Kamil::Generator::EmitStats

Inherits Struct < Value < Object

Encapsulates statistics from a static site emission and asset synchronization pass.

Constructors

new(emitted_pages : Int32 = 0, static_assets : Int32 = 0, skipped_drafts : Int32 = 0, errors_count : Int32 = 0, duration : Time::Span = Time::Span::ZERO)
Source

Instance methods

[](key : Symbol) : Int32

Provides subscript access by symbol for backward compatibility.

Source
duration
Source
duration=(duration : Time::Span)
Source
emitted

Returns the total number of compiled HTML pages emitted to disk.

Source
emitted_pages
Source
emitted_pages=(emitted_pages : Int32)
Source
errors_count
Source
errors_count=(errors_count : Int32)
Source
formatted_duration

Returns formatted elapsed execution duration string.

Source
skipped_drafts
Source
skipped_drafts=(skipped_drafts : Int32)
Source
static_assets
Source
static_assets=(static_assets : Int32)
Source
to_named_tuple

Converts statistics to a NamedTuple representation.

Source