Module: PagesCore::Extensions::StringExtensions

Defined in:
lib/pages_core/extensions/string_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_html(options = {}) ⇒ Object


8
9
10
# File 'lib/pages_core/extensions/string_extensions.rb', line 8

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

#to_html_with(append, options = {}) ⇒ Object


4
5
6
# File 'lib/pages_core/extensions/string_extensions.rb', line 4

def to_html_with(append, options = {})
  to_html(options.merge(append: append))
end