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