Class: TextLineBuilderContext

Inherits:
Object
  • Object
show all
Defined in:
lib/almirah/doc_items/text_line.rb

Direct Known Subclasses

TextLine

Instance Method Summary collapse

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


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


247
248
249
# File 'lib/almirah/doc_items/text_line.rb', line 247

def wiki_link(inner)
  "[[#{inner}]]"
end