Module: HTML::Mixin::TagHandler
- Included in:
- Table::Content
- Defined in:
- lib/html/mixin/tag_handler.rb
Instance Method Summary collapse
- #big(bool = nil) ⇒ Object
- #big=(bool) ⇒ Object
- #blink(bool = nil) ⇒ Object
- #blink=(bool) ⇒ Object
- #bold(bool = nil) ⇒ Object
- #bold=(bool) ⇒ Object
- #italic(bool = nil) ⇒ Object
- #italic=(bool) ⇒ Object
- #strike(bool = nil) ⇒ Object
- #strike=(bool) ⇒ Object
- #sub(bool = nil) ⇒ Object
- #sub=(bool) ⇒ Object
- #sup(bool = nil) ⇒ Object
- #sup=(bool) ⇒ Object
- #tt(bool = nil) ⇒ Object
- #tt=(bool) ⇒ Object
- #underline(bool = nil) ⇒ Object
- #underline=(bool) ⇒ Object
Instance Method Details
#big(bool = nil) ⇒ Object
22 23 24 25 26 |
# File 'lib/html/mixin/tag_handler.rb', line 22 def big(bool = nil) @big ||= nil self.big = bool if bool @big end |
#big=(bool) ⇒ Object
28 29 30 31 |
# File 'lib/html/mixin/tag_handler.rb', line 28 def big=(bool) handle_physical_tag('big', bool) @big = bool end |
#blink(bool = nil) ⇒ Object
33 34 35 36 37 |
# File 'lib/html/mixin/tag_handler.rb', line 33 def blink(bool = nil) @blink ||= nil self.blink = bool if bool @blink end |
#blink=(bool) ⇒ Object
39 40 41 42 43 |
# File 'lib/html/mixin/tag_handler.rb', line 39 def blink=(bool) warn BlinkWarning, "The 'blink' tag is very annoying. Please reconsider." handle_physical_tag('blink', bool) @blink = bool end |
#bold(bool = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/html/mixin/tag_handler.rb', line 11 def bold(bool = nil) @bold ||= nil self.bold = bool if bool @bold end |
#bold=(bool) ⇒ Object
17 18 19 20 |
# File 'lib/html/mixin/tag_handler.rb', line 17 def bold=(bool) handle_physical_tag('b', bool) @bold = bool end |
#italic(bool = nil) ⇒ Object
45 46 47 48 49 |
# File 'lib/html/mixin/tag_handler.rb', line 45 def italic(bool = nil) @italic ||= nil self.italic = bool if bool @italic end |
#italic=(bool) ⇒ Object
51 52 53 54 |
# File 'lib/html/mixin/tag_handler.rb', line 51 def italic=(bool) handle_physical_tag('i', bool) @italic = bool end |
#strike(bool = nil) ⇒ Object
56 57 58 59 60 |
# File 'lib/html/mixin/tag_handler.rb', line 56 def strike(bool = nil) @strike ||= nil self.strike = bool if bool @strike end |
#strike=(bool) ⇒ Object
62 63 64 65 |
# File 'lib/html/mixin/tag_handler.rb', line 62 def strike=(bool) handle_physical_tag('strike', bool) @strike = bool end |
#sub(bool = nil) ⇒ Object
67 68 69 70 71 |
# File 'lib/html/mixin/tag_handler.rb', line 67 def sub(bool = nil) @sub ||= nil self.sub = bool if bool @sub end |
#sub=(bool) ⇒ Object
73 74 75 76 |
# File 'lib/html/mixin/tag_handler.rb', line 73 def sub=(bool) handle_physical_tag('sub', bool) @sub = bool end |
#sup(bool = nil) ⇒ Object
78 79 80 81 82 |
# File 'lib/html/mixin/tag_handler.rb', line 78 def sup(bool = nil) @sup ||= nil self.sup = bool if bool @sup end |
#sup=(bool) ⇒ Object
84 85 86 87 |
# File 'lib/html/mixin/tag_handler.rb', line 84 def sup=(bool) handle_physical_tag('sup', bool) @sup = bool end |
#tt(bool = nil) ⇒ Object
89 90 91 92 93 |
# File 'lib/html/mixin/tag_handler.rb', line 89 def tt(bool = nil) @tt ||= nil self.tt = bool if bool @tt end |
#tt=(bool) ⇒ Object
95 96 97 98 |
# File 'lib/html/mixin/tag_handler.rb', line 95 def tt=(bool) handle_physical_tag('tt', bool) @tt = bool end |
#underline(bool = nil) ⇒ Object
100 101 102 103 104 |
# File 'lib/html/mixin/tag_handler.rb', line 100 def underline(bool = nil) @underline ||= nil self.underline = bool if bool @underline end |
#underline=(bool) ⇒ Object
106 107 108 109 |
# File 'lib/html/mixin/tag_handler.rb', line 106 def underline=(bool) handle_physical_tag('u', bool) @bool = bool end |