Class: Repubmark::Elems::Special
- Defined in:
- lib/repubmark/elems/special.rb
Overview
TODO: maybe don't allow mdash everywhere
Constant Summary collapse
- HTML =
{ ellipsis: '…', mdash: '—', }.freeze
- UNICODE =
{ ellipsis: '…', mdash: '—', }.freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(parent, name) ⇒ Special
constructor
A new instance of Special.
- #to_gemtext ⇒ Object
- #to_html ⇒ Object
-
#to_summary_plain ⇒ Object
Basic methods #.
Methods inherited from Base
#absolute_url, #config, #count_words, #html_class, #own_url, parent?, parents, #relative_url, #word_count
Constructor Details
Instance Method Details
#to_gemtext ⇒ Object
34 |
# File 'lib/repubmark/elems/special.rb', line 34 def to_gemtext = UNICODE.fetch @name |
#to_html ⇒ Object
32 |
# File 'lib/repubmark/elems/special.rb', line 32 def to_html = HTML.fetch @name |
#to_summary_plain ⇒ Object
Basic methods #
30 |
# File 'lib/repubmark/elems/special.rb', line 30 def to_summary_plain = UNICODE.fetch @name |