Sha256: b9cbc8b4ec53f7dcd0099dec1d2c2c3f6f1731da2d080a12725153c81e803aba
Contents?: true
Size: 559 Bytes
Versions: 36
Compression:
Stored size: 559 Bytes
Contents
module RailsConnector # adds flavour to strings module StringTagging # html flavour def self.tag_as_html(string, source) unless string.blank? class << string include RailsConnector::HtmlString end string.source = source end string end # markdown flavour def self.tag_as_markdown(string, source) unless string.blank? class << string include RailsConnector::MarkdownString end string.source = source end string end end end
Version data entries
36 entries across 36 versions & 3 rubygems