Class: SiSU_HTML_Format::FormatStr
- Inherits:
-
Object
- Object
- SiSU_HTML_Format::FormatStr
- Defined in:
- lib/sisu/html_format.rb
Instance Method Summary collapse
- #bold ⇒ Object
- #center ⇒ Object
- #center_bold ⇒ Object
- #endnote_body ⇒ Object
-
#initialize(md, str) ⇒ FormatStr
constructor
A new instance of FormatStr.
Constructor Details
#initialize(md, str) ⇒ FormatStr
Returns a new instance of FormatStr.
1325 1326 1327 |
# File 'lib/sisu/html_format.rb', line 1325 def initialize(md,str) @str=str end |
Instance Method Details
#bold ⇒ Object
1331 1332 1333 |
# File 'lib/sisu/html_format.rb', line 1331 def bold %{<p class="bold">#{@str}</p>\n} end |
#center ⇒ Object
1328 1329 1330 |
# File 'lib/sisu/html_format.rb', line 1328 def center %{<p class="center">#{@str}</p>\n} end |
#center_bold ⇒ Object
1334 1335 1336 |
# File 'lib/sisu/html_format.rb', line 1334 def center_bold %{<p class="centerbold">#{@str}</p>\n} end |
#endnote_body ⇒ Object
1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/sisu/html_format.rb', line 1337 def endnote_body %{ <p class="endnote"> #{@str} </p> } end |