class Webgen::Page
A Page
object wraps a meta information hash and a hash of {block name => block content} associations.
It is normally generated from a file or string in Webgen
Page
Format using the provided class methods.
Attributes
blocks[R]
The hash of blocks for the page.
meta_info[R]
The contents of the meta information block.
Public Class Methods
from_data(data)
new(meta_info = {}, blocks = {})
Create a new Page
object with the meta information provided in meta_info
and the given blocks
.
Public Instance Methods
to_s()
Convert the Page
object back into a string.