class Prismic::Fragments::SliceZone
Attributes
slices[RW]
Public Class Methods
new(slices)
click to toggle source
# File lib/prismic/fragments/slices.rb, line 91 def initialize(slices) @slices = slices end
Public Instance Methods
as_html(link_resolver=nil)
click to toggle source
Generate an HTML representation of the group
@param link_resolver [LinkResolver] The LinkResolver
used to build
application's specific URL
@return [String] the HTML representation
# File lib/prismic/fragments/slices.rb, line 108 def as_html(link_resolver=nil) @slices.map { |slice| slice.as_html(link_resolver) }.join("\n") end
as_text()
click to toggle source
Generate an text representation of the group
@return [String] the text representation
# File lib/prismic/fragments/slices.rb, line 98 def as_text @slices.map { |slice| slice.as_text }.join("\n") end