Class: RicherText::Nodes::AttachmentFigure
- Inherits:
-
RicherText::Node
- Object
- RicherText::Node
- RicherText::Nodes::AttachmentFigure
- Defined in:
- lib/richer_text/nodes/attachment_figure.rb
Constant Summary
Constants inherited from RicherText::Node
Instance Attribute Summary
Attributes inherited from RicherText::Node
#attrs, #children, #json, #type
Instance Method Summary collapse
Methods inherited from RicherText::Node
#accept, build, #initialize, #style
Constructor Details
This class inherits a constructor from RicherText::Node
Instance Method Details
#previewable? ⇒ Boolean
4 5 6 |
# File 'lib/richer_text/nodes/attachment_figure.rb', line 4 def previewable? @attrs["previewable"] end |
#sgid ⇒ Object
12 13 14 |
# File 'lib/richer_text/nodes/attachment_figure.rb', line 12 def sgid @attrs["sgid"] end |
#url ⇒ Object
8 9 10 |
# File 'lib/richer_text/nodes/attachment_figure.rb', line 8 def url @attrs["url"].presence || @attrs["src"] end |