Class: SiSU_HTML_Format::FormatStr

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/html_format.rb

Instance Method Summary collapse

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

#boldObject



1331
1332
1333
# File 'lib/sisu/html_format.rb', line 1331

def bold
  %{<p class="bold">#{@str}</p>\n}
end

#centerObject



1328
1329
1330
# File 'lib/sisu/html_format.rb', line 1328

def center
  %{<p class="center">#{@str}</p>\n}
end

#center_boldObject



1334
1335
1336
# File 'lib/sisu/html_format.rb', line 1334

def center_bold
  %{<p class="centerbold">#{@str}</p>\n}
end

#endnote_bodyObject



1337
1338
1339
1340
1341
1342
1343
# File 'lib/sisu/html_format.rb', line 1337

def endnote_body
  %{
<p class="endnote">
  #{@str}
</p>
}
end