Class: Raf::Element
- Inherits:
-
Object
show all
- Defined in:
- lib/raf2html_element.rb
Direct Known Subclasses
Code, Desc, Emphasis, Footnote, HeadLine, Image, Italic, ItemList, Kbd, Label, Manuedo, NumList, Paragraph, Plain, PlainTextBlock, Quote, Reference, Ruby, Strike, Table, Verb, WhiteLine
Instance Method Summary
collapse
Instance Method Details
#inline_parse_to_str(array) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/raf2html_element.rb', line 14
def inline_parse_to_str(array)
str = ""
array.each do |obj|
str += obj.apply
end
str
end
|
#newline_to_br(str) ⇒ Object
9
10
11
|
# File 'lib/raf2html_element.rb', line 9
def newline_to_br(str)
str.gsub("\n", "<br />\n")
end
|