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

Version Path
infopark_rails_connector-6.8.2.36.82613853 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.2.7.128454143 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.1.26.236500544 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.1 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.539.93842523 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.529.114081979 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.518.30999728 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.515.34928522 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.498.46559598 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.480.261594408 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.444.171626367 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.406.131718077 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.356.19698103 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.348.160665197 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.328.4a753fc lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.0.322.c003f11 lib/rails_connector/string_tagging.rb