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.50.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.50.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.42.1 lib/scrivito/html_string.rb
scrivito_sdk-0.42.1.rc3 lib/scrivito/html_string.rb
scrivito_sdk-0.42.1.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.42.1.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.42.0 lib/scrivito/html_string.rb
scrivito_sdk-0.41.1 lib/scrivito/html_string.rb
scrivito_sdk-0.41.0 lib/scrivito/html_string.rb
scrivito_sdk-0.41.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.41.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.40.0 lib/scrivito/html_string.rb
scrivito_sdk-0.40.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.40.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.30.0 lib/scrivito/html_string.rb
scrivito_sdk-0.30.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.18.1 lib/scrivito/html_string.rb
scrivito_sdk-0.18.0 lib/scrivito/html_string.rb
scrivito_sdk-0.17.0 lib/scrivito/html_string.rb
scrivito_sdk-0.16.0 lib/scrivito/html_string.rb