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
Returns the value of attribute value.
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)
Returns the value of attribute value
1135 1136 1137 |
# File 'lib/html_to_markdown/native.rb', line 1135 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
1155 1156 1157 |
# File 'lib/html_to_markdown/native.rb', line 1155 def self.from_hash(hash) new(value: hash[:output] || hash["output"]) end |
Instance Method Details
#continue? ⇒ Boolean
1143 |
# File 'lib/html_to_markdown/native.rb', line 1143 def continue? = false |
#custom? ⇒ Boolean
1145 |
# File 'lib/html_to_markdown/native.rb', line 1145 def custom? = false |
#error? ⇒ Boolean
1151 1152 1153 |
# File 'lib/html_to_markdown/native.rb', line 1151 def error? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#preserve_html? ⇒ Boolean
1149 |
# File 'lib/html_to_markdown/native.rb', line 1149 def preserve_html? = false |
#skip? ⇒ Boolean
1147 |
# File 'lib/html_to_markdown/native.rb', line 1147 def skip? = false |