abstract class Lemonade::Block::CachedBlock

Overview

Cached version of BaseBlock.

Saves the rendering output, and use it to redraw the block, until it is marked dirty.

Direct Known Subclasses

Defined in:

lemonade/block/base.cr

Instance Method Summary

Instance methods inherited from class Lemonade::Block::BaseBlock

dirty! dirty!, dirty? dirty?, inspect(io : IO) : Nil inspect, parents : Array(Lemonade::Block::BaseBlock) parents, parents=(parents : Array(Lemonade::Block::BaseBlock)) parents=, redraw(io) redraw, render(io) render

Instance Method Detail

def dirty! #

Mark the Block and its parents as 'dirty', to force re-render on next redraw.


[View source]
def dirty? #
Description copied from class Lemonade::Block::BaseBlock

This is not a cached block, it always needs rendering.


[View source]
def redraw(io) #
Description copied from class Lemonade::Block::BaseBlock

TODO doc


[View source]