Class: HtmlToMarkdown::VisitResultError
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::VisitResultError
- Extended by:
- T::Sig
- Includes:
- VisitResult
- Defined in:
- lib/html_to_markdown/native.rb
Overview
Stop conversion with an error
The conversion process halts and returns this error message.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #continue? ⇒ Boolean
- #custom? ⇒ Boolean
- #error? ⇒ Boolean
- #preserve_html? ⇒ Boolean
- #skip? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
1093 1094 1095 |
# File 'lib/html_to_markdown/native.rb', line 1093 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
1113 1114 1115 |
# File 'lib/html_to_markdown/native.rb', line 1113 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#continue? ⇒ Boolean
1101 |
# File 'lib/html_to_markdown/native.rb', line 1101 def continue? = false |
#custom? ⇒ Boolean
1103 |
# File 'lib/html_to_markdown/native.rb', line 1103 def custom? = false |
#error? ⇒ Boolean
1109 1110 1111 |
# File 'lib/html_to_markdown/native.rb', line 1109 def error? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#preserve_html? ⇒ Boolean
1107 |
# File 'lib/html_to_markdown/native.rb', line 1107 def preserve_html? = false |
#skip? ⇒ Boolean
1105 |
# File 'lib/html_to_markdown/native.rb', line 1105 def skip? = false |