class Storyblok::Richtext::Nodes::Image

Public Instance Methods

matching() click to toggle source
# File lib/storyblok/richtext/html_renderer/nodes/image.rb, line 5
def matching
  @node['type'] === 'image'
end
single_tag() click to toggle source
# File lib/storyblok/richtext/html_renderer/nodes/image.rb, line 9
def single_tag
  [{
    tag: "img",
    attrs: @node['attrs'].slice('src', 'alt', 'title')
  }]
end