class Prismic::Fragments::StructuredText::Block::ListItem
Attributes
ordered[RW]
ordered?[RW]
Public Class Methods
new(text, spans, ordered, label = nil)
click to toggle source
Calls superclass method
Prismic::Fragments::StructuredText::Block::Text::new
# File lib/prismic/fragments/structured_text.rb, line 310 def initialize(text, spans, ordered, label = nil) super(text, spans, label) @ordered = ordered end
Public Instance Methods
as_html(link_resolver, html_serializer=nil)
click to toggle source
Calls superclass method
Prismic::Fragments::StructuredText::Block::Text#as_html
# File lib/prismic/fragments/structured_text.rb, line 315 def as_html(link_resolver, html_serializer=nil) custom_html = html_serializer && html_serializer.serialize(self, super) if custom_html.nil? %(<li#{class_code}>#{super}</li>) else custom_html end end