Class: Xberg::NodeContentRawBlock

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

Overview

Raw block preserved verbatim from the source format.

Used for content that cannot be mapped to a semantic node type (e.g. JSX in MDX, raw LaTeX in markdown, embedded HTML).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



4392
4393
4394
# File 'lib/xberg/native.rb', line 4392

def content
  @content
end

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



4392
4393
4394
# File 'lib/xberg/native.rb', line 4392

def format
  @format
end

Class Method Details

.from_hash(hash) ⇒ Object



4447
4448
4449
# File 'lib/xberg/native.rb', line 4447

def self.from_hash(hash)
  new(format: hash[:format] || hash["format"], content: hash[:content] || hash["content"])
end

Instance Method Details

#admonition?Boolean

Returns:

  • (Boolean)


4439
# File 'lib/xberg/native.rb', line 4439

def admonition? = false

#citation?Boolean

Returns:

  • (Boolean)


4437
# File 'lib/xberg/native.rb', line 4437

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


4417
# File 'lib/xberg/native.rb', line 4417

def code? = false

#comment?Boolean

Returns:

  • (Boolean)


4425
# File 'lib/xberg/native.rb', line 4425

def comment? = false

#definition_item?Boolean

Returns:

  • (Boolean)


4435
# File 'lib/xberg/native.rb', line 4435

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


4433
# File 'lib/xberg/native.rb', line 4433

def definition_list? = false

#footnote?Boolean

Returns:

  • (Boolean)


4423
# File 'lib/xberg/native.rb', line 4423

def footnote? = false

#formula?Boolean

Returns:

  • (Boolean)


4421
# File 'lib/xberg/native.rb', line 4421

def formula? = false

#group?Boolean

Returns:

  • (Boolean)


4427
# File 'lib/xberg/native.rb', line 4427

def group? = false

#heading?Boolean

Returns:

  • (Boolean)


4405
# File 'lib/xberg/native.rb', line 4405

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


4415
# File 'lib/xberg/native.rb', line 4415

def image? = false

#list?Boolean

Returns:

  • (Boolean)


4409
# File 'lib/xberg/native.rb', line 4409

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


4411
# File 'lib/xberg/native.rb', line 4411

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


4443
4444
4445
# File 'lib/xberg/native.rb', line 4443

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

#page_break?Boolean

Returns:

  • (Boolean)


4429
# File 'lib/xberg/native.rb', line 4429

def page_break? = false

#paragraph?Boolean

Returns:

  • (Boolean)


4407
# File 'lib/xberg/native.rb', line 4407

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


4419
# File 'lib/xberg/native.rb', line 4419

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


4441
# File 'lib/xberg/native.rb', line 4441

def raw_block? = true

#slide?Boolean

Returns:

  • (Boolean)


4431
# File 'lib/xberg/native.rb', line 4431

def slide? = false

#table?Boolean

Returns:

  • (Boolean)


4413
# File 'lib/xberg/native.rb', line 4413

def table? = false

#title?Boolean

Returns:

  • (Boolean)


4403
# File 'lib/xberg/native.rb', line 4403

def title? = false