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.71.0 lib/scrivito/html_string.rb
scrivito_sdk-0.71.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.71.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.70.0 lib/scrivito/html_string.rb
scrivito_sdk-0.70.0.rc3 lib/scrivito/html_string.rb
scrivito_sdk-0.70.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.70.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.66.0 lib/scrivito/html_string.rb
scrivito_sdk-0.66.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.65.2 lib/scrivito/html_string.rb
scrivito_sdk-0.66.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.65.1 lib/scrivito/html_string.rb
scrivito_sdk-0.65.0 lib/scrivito/html_string.rb
scrivito_sdk-0.65.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.65.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.60.0 lib/scrivito/html_string.rb
scrivito_sdk-0.60.0.rc2 lib/scrivito/html_string.rb
scrivito_sdk-0.50.1 lib/scrivito/html_string.rb
scrivito_sdk-0.60.0.rc1 lib/scrivito/html_string.rb
scrivito_sdk-0.50.0 lib/scrivito/html_string.rb