Sha256: 4748e1dc3418b7604816390d5f40110376ac3442b3495cebbcee588d67351e66

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

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

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

String.include PagesCore::Extensions::StringExtensions

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pages_core-3.15.5 lib/pages_core/extensions/string_extensions.rb
pages_core-3.15.4 lib/pages_core/extensions/string_extensions.rb
pages_core-3.15.3 lib/pages_core/extensions/string_extensions.rb
pages_core-3.15.2 lib/pages_core/extensions/string_extensions.rb
pages_core-3.15.1 lib/pages_core/extensions/string_extensions.rb
pages_core-3.14.0 lib/pages_core/extensions/string_extensions.rb
pages_core-3.13.0 lib/pages_core/extensions/string_extensions.rb