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