Class: HtmlToMarkdown::NodeContentList

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
NodeContent
Defined in:
lib/html_to_markdown/native.rb

Overview

A list container (ordered or unordered). Children are ListItem nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#orderedObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



181
182
183
# File 'lib/html_to_markdown/native.rb', line 181

def ordered
  @ordered
end

Class Method Details

.from_hash(hash) ⇒ Object



217
218
219
# File 'lib/html_to_markdown/native.rb', line 217

def self.from_hash(hash)
  new(ordered: hash[:ordered] || hash["ordered"])
end

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


213
214
215
# File 'lib/html_to_markdown/native.rb', line 213

def group? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = true

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false