class Storyblok::Richtext::Nodes::Blok
Public Instance Methods
component_resolver(component, data)
click to toggle source
# File lib/storyblok/richtext/html_renderer/nodes/blok.rb, line 17 def component_resolver component, data '' end
html()
click to toggle source
# File lib/storyblok/richtext/html_renderer/nodes/blok.rb, line 9 def html body = '' @node['attrs']['body'].each do |blok| body += component_resolver(blok['component'], blok) end body end
matching()
click to toggle source
# File lib/storyblok/richtext/html_renderer/nodes/blok.rb, line 5 def matching @node['type'] === 'blok' end