class SlackTransformer::Slack::Preformatted
Constants
- PATTERN
Attributes
input[R]
Public Class Methods
new(input)
click to toggle source
# File lib/slack_transformer/slack/preformatted.rb, line 36 def initialize(input) @input = input end
Public Instance Methods
to_html()
click to toggle source
# File lib/slack_transformer/slack/preformatted.rb, line 40 def to_html input.gsub(PATTERN, '\1<pre>\2</pre>\1') end