class Html::Page
Attributes
body[R]
head[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
Html::Elem::new
# File misc/txt2html.rb, line 188 def initialize @body = Elem.new('body') @head = Elem.new('head') super('html', {'xmlns'=>'http://www.w3.org/1999/xhtml', 'xml:lang'=>'fr'}) add(@head) add(@body) end
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
Html::Elem#to_s
# File misc/txt2html.rb, line 196 def to_s '<?xml version="1.0" encoding="us-ascii" ?>'+"\n"+ '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"'+"\n"+ IndentAdd*2+'"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'+"\n"+ super.to_s end