method

new

rails latest stable - Class: ActionText::Content
new(content = nil, options = {})
public

No documentation available.

# File actiontext/lib/action_text/content.rb, line 37
    def initialize(content = nil, options = {})
      options.with_defaults! canonicalize: true

      if options[:canonicalize]
        @fragment = self.class.fragment_by_canonicalizing_content(content)
      else
        @fragment = ActionText::Fragment.wrap(content)
      end
    end