Sha256: f0fb45c9a414a77a6ed43ea6cd62390d813e64a2b148b30167a47b677a6928f7
Contents?: true
Size: 556 Bytes
Versions: 11
Compression:
Stored size: 556 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
11 entries across 11 versions & 1 rubygems