Methods

Instance Public methods

_dump(*)

📝 Source code
# File actiontext/lib/action_text/serialization.rb, line 32
    def _dump(*)
      self.class.dump(self)
    end
🔎 See on GitHub

dump(content)

📝 Source code
# File actiontext/lib/action_text/serialization.rb, line 12
      def dump(content)
        case content
        when nil
          nil
        when self
          content.to_html
        when ActionText::RichText
          content.body.to_html
        else
          new(content).to_html
        end
      end
🔎 See on GitHub

load(content)

📝 Source code
# File actiontext/lib/action_text/serialization.rb, line 8
      def load(content)
        new(content) if content
      end
🔎 See on GitHub