Class: Xberg::NodeContentGroup

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

Overview

Logical grouping container (section, key-value area).

heading_level + heading_text capture the section heading directly rather than relying on a first-child positional convention.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heading_levelObject (readonly)

Returns the value of attribute heading_level

Returns:

  • (Object)

    the current value of heading_level



3972
3973
3974
# File 'lib/xberg/native.rb', line 3972

def heading_level
  @heading_level
end

#heading_textObject (readonly)

Returns the value of attribute heading_text

Returns:

  • (Object)

    the current value of heading_text



3972
3973
3974
# File 'lib/xberg/native.rb', line 3972

def heading_text
  @heading_text
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



3972
3973
3974
# File 'lib/xberg/native.rb', line 3972

def label
  @label
end

Class Method Details

.from_hash(hash) ⇒ Object



4030
4031
4032
4033
4034
4035
4036
# File 'lib/xberg/native.rb', line 4030

def self.from_hash(hash)
  new(
    label: hash[:label] || hash["label"],
    heading_level: hash[:heading_level] || hash["heading_level"],
    heading_text: hash[:heading_text] || hash["heading_text"]
  )
end

Instance Method Details

#admonition?Boolean

Returns:

  • (Boolean)


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

def admonition? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#comment?Boolean

Returns:

  • (Boolean)


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

def comment? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#footnote?Boolean

Returns:

  • (Boolean)


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

def footnote? = false

#formula?Boolean

Returns:

  • (Boolean)


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

def formula? = false

#group?Boolean

Returns:

  • (Boolean)


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

def group? = true

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


4026
4027
4028
# File 'lib/xberg/native.rb', line 4026

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

#page_break?Boolean

Returns:

  • (Boolean)


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

def page_break? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false

#title?Boolean

Returns:

  • (Boolean)


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

def title? = false