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_fiona_connector-7.0.1.5.2.3.rc4 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.1.beta2 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-7.0.0 lib/rails_connector/string_tagging.rb
infopark_fiona_connector-6.10.0.beta1 lib/rails_connector/string_tagging.rb
infopark_cloud_connector-7.0.2 lib/rails_connector/string_tagging.rb
infopark_cloud_connector-7.0.1 lib/rails_connector/string_tagging.rb
infopark_cloud_connector-7.0.0 lib/rails_connector/string_tagging.rb
infopark_cloud_connector-6.9.5 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.9.4 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.9.3.1.36404185 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.9.2.1.125136549 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.9.1.3.22208381 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.9.0.3.197272233 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.3.174.51542603 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.3.115.227021242 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.3.73.75172665 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.3.2.153416031 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.3.67.110847540 lib/rails_connector/string_tagging.rb
infopark_rails_connector-6.8.3.1.23895778 lib/rails_connector/string_tagging.rb