Class: Storyblok::Richtext::Marks::Mark
- Inherits:
-
Object
- Object
- Storyblok::Richtext::Marks::Mark
show all
- Defined in:
- lib/storyblok/richtext/html_renderer/marks/mark.rb
Direct Known Subclasses
Anchor, Bold, Code, Highlight, Italic, Link, Strike, Strong, Styled, Subscript, Superscript, TextStyle, Underline
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
#type ⇒ Object
6
7
8
|
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 6
def type
@type || 'mark'
end
|
Instance Method Details
#matching ⇒ Object
14
15
16
|
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 14
def matching
false
end
|
#tag ⇒ Object
18
19
20
|
# File 'lib/storyblok/richtext/html_renderer/marks/mark.rb', line 18
def tag
nil
end
|