class MetaRuby::GUI::HTML::Page::Fragment

A page fragment (or section)

Attributes

buttons[R]

A list of buttons to be rendered before the fragment title and its content

@return [Array<Button>]

html[RW]

The fragment's HTML content

id[RW]

The fragment ID (as, in, HTML id)

title[RW]

The fragmen title (rendered with <h2>)

Public Class Methods

new(title, html, id: nil, buttons: Array.new) click to toggle source

Create a new fragment

# File lib/metaruby/gui/html/page.rb, line 96
def initialize(title, html, id: nil, buttons: Array.new)
    @title = title
    @html = html
    @id = id
    @buttons = buttons
end