class

ActionText::Content

Inherits Reference < Object

Constructors

new(content : Content | String | Nil = nil)
Source

Class methods

dump(content : Content | RichText | String | Nil) : String | Nil
Source
load(html : String | Nil) : Content | Nil
Source

Instance methods

fragment
Source
inspect(io : IO) : Nil

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
to_html
Source
to_plain_text
Source
to_s

The gem renders this through the action_text/contents/content layout (a static wrapper around the sanitized body).

Source
to_trix_html
Source