Methods
- A
- F
- I
- N
- S
Included Modules
Attributes
| [R] | node |
Class Public methods
attachment_selector() Link
find_attachment_gallery_nodes(content) Link
# File actiontext/lib/action_text/attachment_gallery.rb, line 25 def find_attachment_gallery_nodes(content) Fragment.wrap(content).find_all(selector).select do |node| node.children.all? do |child| if child.text? /\A(\n|\ )*\z/.match?(child.text) else child.matches? attachment_selector end end end end
fragment_by_canonicalizing_attachment_galleries(content) Link
fragment_by_replacing_attachment_gallery_nodes(content) Link
from_node(node, attachables_by_sgid = {}) Link
new(node, attachables_by_sgid = {}) Link
selector() Link
Instance Public methods
attachments() Link
# File actiontext/lib/action_text/attachment_gallery.rb, line 57 def attachments @attachments ||= node.css(ActionText::AttachmentGallery.attachment_selector).map do |node| ActionText::Attachment.from_node(node, @attachables_by_sgid[node["sgid"]]).with_full_attributes end end