Class: DatoDast::Nodes::AttributedQuote
- Defined in:
- lib/dato_dast/nodes/attributed_quote.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#children, #config, #css_class, #initialize, #meta, #node_config, #render_children, #render_value, #tag, #tag_info, #type, type, #wrappers
Constructor Details
This class inherits a constructor from DatoDast::Nodes::Base
Instance Method Details
#attribution ⇒ Object
4 5 6 |
# File 'lib/dato_dast/nodes/attributed_quote.rb', line 4 def attribution @node["attribution"] end |
#render ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/dato_dast/nodes/attributed_quote.rb', line 8 def render <<~HTML <figure> #{super} <figcaption> #{attribution} </figcaption> </figure> HTML end |