Class: Formol::Formatters::BBCoder::Formatter
- Inherits:
-
Object
- Object
- Formol::Formatters::BBCoder::Formatter
- Defined in:
- lib/formol/formatters/bbcoder/formatter.rb
Instance Method Summary collapse
Instance Method Details
#quote(author_name, text) ⇒ Object
12 13 14 |
# File 'lib/formol/formatters/bbcoder/formatter.rb', line 12 def quote(, text) %{[quote=#{}]\n#{text}\n[/quote]} end |
#to_html(text) ⇒ Object
8 9 10 |
# File 'lib/formol/formatters/bbcoder/formatter.rb', line 8 def to_html(text) ::BBCoder.new(text).to_html.html_safe end |