Class: Storyblok::Richtext::Marks::Mark

Inherits:
Object
  • Object
show all
Defined in:
lib/storyblok/richtext/html_renderer/marks/mark.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Mark

Returns a new instance of Mark.



10
11
12
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 10

def initialize(data)
  @node = data
end

Instance Attribute Details

#typeObject



6
7
8
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 6

def type
  @type || 'mark'
end

Instance Method Details

#matchingObject



14
15
16
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 14

def matching
  false
end

#tagObject



18
19
20
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 18

def tag
  nil
end