Module: FunHtml::SpecElements::HTMLPreElement

Included in:
HTMLAllElements
Defined in:
lib/fun_html/spec_elements.rb

Instance Method Summary collapse

Instance Method Details

#listing(attributes = nil, &elements) ⇒ Object



312
313
314
# File 'lib/fun_html/spec_elements.rb', line 312

def listing(attributes = nil, &elements)
  write('<listing', '</listing>', attributes, &elements)
end

#pre(attributes = nil, &elements) ⇒ Object



308
309
310
# File 'lib/fun_html/spec_elements.rb', line 308

def pre(attributes = nil, &elements)
  write('<pre', '</pre>', attributes, &elements)
end

#xmp(attributes = nil, &elements) ⇒ Object



316
317
318
# File 'lib/fun_html/spec_elements.rb', line 316

def xmp(attributes = nil, &elements)
  write('<xmp', '</xmp>', attributes, &elements)
end