Sha256: eba4f7e3b0e545db983d7a14eb06ca45d6b95804ee82ef85342a42db098844fd

Contents?: true

Size: 371 Bytes

Versions: 22

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module PagesCore
  module Extensions
    module StringExtensions
      def to_html_with(append, options = {})
        to_html(options.merge(append: append))
      end

      def to_html(options = {})
        PagesCore::HtmlFormatter.to_html(self, options)
      end
    end
  end
end

String.include PagesCore::Extensions::StringExtensions

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
pages_core-3.12.7 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.6 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.5 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.4 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.3 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.2 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.1 lib/pages_core/extensions/string_extensions.rb
pages_core-3.12.0 lib/pages_core/extensions/string_extensions.rb
pages_core-3.11.3 lib/pages_core/extensions/string_extensions.rb
pages_core-3.11.2 lib/pages_core/extensions/string_extensions.rb
pages_core-3.11.1 lib/pages_core/extensions/string_extensions.rb
pages_core-3.11.0 lib/pages_core/extensions/string_extensions.rb
pages_core-3.10.2 lib/pages_core/extensions/string_extensions.rb
pages_core-3.10.1 lib/pages_core/extensions/string_extensions.rb
pages_core-3.9.2 lib/pages_core/extensions/string_extensions.rb
pages_core-3.9.1 lib/pages_core/extensions/string_extensions.rb
pages_core-3.9.0 lib/pages_core/extensions/string_extensions.rb
pages_core-3.8.3 lib/pages_core/extensions/string_extensions.rb
pages_core-3.8.2 lib/pages_core/extensions/string_extensions.rb
pages_core-3.8.1 lib/pages_core/extensions/string_extensions.rb