Class: HtmlToMarkdown::VisitResultError

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#value ⇒ Object (readonly)

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Boolean)


1143
# File 'lib/html_to_markdown/native.rb', line 1143

def continue? = false

#custom? ⇒ Boolean

Returns:

  • (Boolean)


1145
# File 'lib/html_to_markdown/native.rb', line 1145

def custom? = false

#error? ⇒ Boolean

Returns:

  • (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

Returns:

  • (Boolean)


1149
# File 'lib/html_to_markdown/native.rb', line 1149

def preserve_html? = false

#skip? ⇒ Boolean

Returns:

  • (Boolean)


1147
# File 'lib/html_to_markdown/native.rb', line 1147

def skip? = false