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.



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

def initialize(md,str)
  @str=str
end

Instance Method Details

#boldObject



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

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

#centerObject



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

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

#center_boldObject



1336
1337
1338
# File 'lib/sisu/html_format.rb', line 1336

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

#endnote_bodyObject



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

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