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

Version Path
infopark_fiona_connector-7.0.1.6.1.6.rc4 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.6.1.6.rc3 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.6.1.6.rc2 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.6.1.6.rc1 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.7.rc1 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.4.rc2 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.4.rc1 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.3.rc8 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.3.rc7 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.3.rc6 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.5.2.3.rc5 lib/rails_connector/string_tagging.rb