class Proforma::Prototype

A prototype is a compiled template that has been flattened and ready for rendering.

Attributes

children[W]
title[W]

Public Class Methods

new(children: [], title: '') click to toggle source
# File lib/proforma/prototype.rb, line 15
def initialize(children: [], title: '')
  @children = ModelFactory.array(children)
  @title    = title
end

Public Instance Methods

children() click to toggle source
# File lib/proforma/prototype.rb, line 20
def children
  Array(@children)
end
title() click to toggle source
# File lib/proforma/prototype.rb, line 24
def title
  @title.to_s
end