Class: TextLineBuilderContext
- Inherits:
-
Object
- Object
- TextLineBuilderContext
- Defined in:
- lib/almirah/doc_items/text_line.rb
Direct Known Subclasses
Instance Method Summary collapse
- #bold(str) ⇒ Object
- #bold_and_italic(str) ⇒ Object
- #inline_code(str) ⇒ Object
- #italic(str) ⇒ Object
- #link(_link_text, link_url) ⇒ Object
-
#literal_text(str) ⇒ Object
Literal (non-markup) text run.
- #wiki_link(inner) ⇒ Object
Instance Method Details
#bold(str) ⇒ Object
231 232 233 |
# File 'lib/almirah/doc_items/text_line.rb', line 231 def bold(str) str end |
#bold_and_italic(str) ⇒ Object
235 236 237 |
# File 'lib/almirah/doc_items/text_line.rb', line 235 def bold_and_italic(str) str end |
#inline_code(str) ⇒ Object
239 240 241 |
# File 'lib/almirah/doc_items/text_line.rb', line 239 def inline_code(str) str end |
#italic(str) ⇒ Object
227 228 229 |
# File 'lib/almirah/doc_items/text_line.rb', line 227 def italic(str) str end |
#link(_link_text, link_url) ⇒ Object
243 244 245 |
# File 'lib/almirah/doc_items/text_line.rb', line 243 def link(_link_text, link_url) link_url end |
#literal_text(str) ⇒ Object
Literal (non-markup) text run. Subclasses encode it for the HTML context; the base context leaves it untouched for plain reconstruction/unit tests.
223 224 225 |
# File 'lib/almirah/doc_items/text_line.rb', line 223 def literal_text(str) str end |
#wiki_link(inner) ⇒ Object
247 248 249 |
# File 'lib/almirah/doc_items/text_line.rb', line 247 def wiki_link(inner) "[[#{inner}]]" end |