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.
1327 1328 1329 |
# File 'lib/sisu/html_format.rb', line 1327 def initialize(md,str) @str=str end |
Instance Method Details
#bold ⇒ Object
1333 1334 1335 |
# File 'lib/sisu/html_format.rb', line 1333 def bold %{<p class="bold">#{@str}</p>\n} end |
#center ⇒ Object
1330 1331 1332 |
# File 'lib/sisu/html_format.rb', line 1330 def center %{<p class="center">#{@str}</p>\n} end |
#center_bold ⇒ Object
1336 1337 1338 |
# File 'lib/sisu/html_format.rb', line 1336 def center_bold %{<p class="centerbold">#{@str}</p>\n} end |
#endnote_body ⇒ Object
1339 1340 1341 1342 1343 1344 1345 |
# File 'lib/sisu/html_format.rb', line 1339 def endnote_body %{ <p class="endnote"> #{@str} </p> } end |