Module: FunHtml::SpecElements::HTMLHeadingElement

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

Instance Method Summary collapse

Instance Method Details

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



269
270
271
# File 'lib/fun_html/spec_elements.rb', line 269

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

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



273
274
275
# File 'lib/fun_html/spec_elements.rb', line 273

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

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



277
278
279
# File 'lib/fun_html/spec_elements.rb', line 277

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

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



281
282
283
# File 'lib/fun_html/spec_elements.rb', line 281

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

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



285
286
287
# File 'lib/fun_html/spec_elements.rb', line 285

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

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



289
290
291
# File 'lib/fun_html/spec_elements.rb', line 289

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