Class: HtmlToMarkdown::AnnotationKindLink
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::AnnotationKindLink
- Extended by:
- T::Sig
- Includes:
- AnnotationKind
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A hyperlink sourced from an <a href="..."> element.
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#url ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #bold? ⇒ Boolean
- #code? ⇒ Boolean
- #highlight? ⇒ Boolean
- #italic? ⇒ Boolean
- #link? ⇒ Boolean
- #strikethrough? ⇒ Boolean
- #subscript? ⇒ Boolean
- #superscript? ⇒ Boolean
- #underline? ⇒ Boolean
Instance Attribute Details
#title ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
974 975 976 |
# File 'lib/html_to_markdown/native.rb', line 974 def title @title end |
#url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
974 975 976 |
# File 'lib/html_to_markdown/native.rb', line 974 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
1015 1016 1017 |
# File 'lib/html_to_markdown/native.rb', line 1015 def self.from_hash(hash) new(url: hash[:url] || hash["url"], title: hash[:title] || hash["title"]) end |
Instance Method Details
#bold? ⇒ Boolean
995 |
# File 'lib/html_to_markdown/native.rb', line 995 def bold? = false |
#code? ⇒ Boolean
1003 |
# File 'lib/html_to_markdown/native.rb', line 1003 def code? = false |
#highlight? ⇒ Boolean
1009 |
# File 'lib/html_to_markdown/native.rb', line 1009 def highlight? = false |
#italic? ⇒ Boolean
997 |
# File 'lib/html_to_markdown/native.rb', line 997 def italic? = false |
#link? ⇒ Boolean
1011 1012 1013 |
# File 'lib/html_to_markdown/native.rb', line 1011 def link? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#strikethrough? ⇒ Boolean
1001 |
# File 'lib/html_to_markdown/native.rb', line 1001 def strikethrough? = false |
#subscript? ⇒ Boolean
1005 |
# File 'lib/html_to_markdown/native.rb', line 1005 def subscript? = false |
#superscript? ⇒ Boolean
1007 |
# File 'lib/html_to_markdown/native.rb', line 1007 def superscript? = false |
#underline? ⇒ Boolean
999 |
# File 'lib/html_to_markdown/native.rb', line 999 def underline? = false |