Sha256: 2a3cbb366b43875b310a836038ad7df5acf3173285104543d9b748c91e68cad9

Contents?: true

Size: 358 Bytes

Versions: 144

Compression:

Stored size: 358 Bytes

Contents

module Scrivito

  # 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

144 entries across 144 versions & 1 rubygems

Version Path
scrivito_sdk-0.15.0 lib/scrivito/html_string.rb
scrivito_sdk-0.14.0 lib/scrivito/html_string.rb
scrivito_sdk-0.13.0 lib/scrivito/html_string.rb
scrivito_sdk-0.12.0 lib/scrivito/html_string.rb