class ActionText::Attachables::ContentAttachment
:nodoc:
def self.from_node(node)
def self.from_node(node) attachment = new(content_type: node["content-type"], content: node["content"]) attachment if attachment.valid? end
def attachable_plain_text_representation(caption)
def attachable_plain_text_representation(caption) content_instance.fragment.source end
def content_instance
def content_instance @content_instance ||= ActionText::Content.new(content) end
def to_html
def to_html @to_html ||= content_instance.render(content_instance) end
def to_partial_path
def to_partial_path "action_text/attachables/content_attachment" end
def to_s
def to_s to_html end