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

#valueObject (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

Returns:

  • (Boolean)


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

def continue? = false

#custom?Boolean

Returns:

  • (Boolean)


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

def custom? = false

#error?Boolean

Returns:

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

Returns:

  • (Boolean)


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

def preserve_html? = false

#skip?Boolean

Returns:

  • (Boolean)


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

def skip? = false