Sha256: 56b737258145377263f5cc8bd4ce1b4f780a6b0833c3125e64f5d0a0be3e8623

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

module RailsConnector

  # Include this module in order to tag the string as one with HTML content
  module HtmlString
    # Returns whether the String contains HTML (default to true, overrides String.html?).
    def html?
      true
    end
  end

end

class String
  # Returns whether the String contains HTML (default to false).
  def html?
    false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.1.0 lib/rails_connector/html_string.rb