Module: Guileless::TagLibrary
- Included in:
- Parser
- Defined in:
- lib/guileless/tag_library.rb
Instance Method Summary collapse
- #block_level_tags ⇒ Object
- #closing(tags) ⇒ Object
- #html_tags ⇒ Object
- #paragraph_container_tags ⇒ Object
Instance Method Details
#block_level_tags ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/guileless/tag_library.rb', line 21 def %w{ address article aside audio blockquote canvas dd div dl fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr noscript ol output p pre section table tfoot ul video } end |
#closing(tags) ⇒ Object
3 4 5 |
# File 'lib/guileless/tag_library.rb', line 3 def closing() .map{|t| "/#{t}" } end |
#html_tags ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/guileless/tag_library.rb', line 7 def %w{ a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark math menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp section select small source span strong style sub summary svg table tbody td textarea tfoot th thead time title tr track u ul var video wbr } end |
#paragraph_container_tags ⇒ Object
29 30 31 |
# File 'lib/guileless/tag_library.rb', line 29 def %w{article aside blockquote div footer header} end |