Class: Xberg::NodeContentRawBlock
- Inherits:
-
Data
- Object
- Data
- Xberg::NodeContentRawBlock
- 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
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Class Method Summary collapse
Instance Method Summary collapse
- #admonition? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #comment? ⇒ Boolean
- #definition_item? ⇒ Boolean
- #definition_list? ⇒ Boolean
- #footnote? ⇒ Boolean
- #formula? ⇒ Boolean
- #group? ⇒ Boolean
- #heading? ⇒ Boolean
- #image? ⇒ Boolean
- #list? ⇒ Boolean
- #list_item? ⇒ Boolean
- #metadata_block? ⇒ Boolean
- #page_break? ⇒ Boolean
- #paragraph? ⇒ Boolean
- #quote? ⇒ Boolean
- #raw_block? ⇒ Boolean
- #slide? ⇒ Boolean
- #table? ⇒ Boolean
- #title? ⇒ Boolean
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
4392 4393 4394 |
# File 'lib/xberg/native.rb', line 4392 def content @content end |
#format ⇒ Object (readonly)
Returns the value of attribute 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
4439 |
# File 'lib/xberg/native.rb', line 4439 def admonition? = false |
#citation? ⇒ Boolean
4437 |
# File 'lib/xberg/native.rb', line 4437 def citation? = false |
#code? ⇒ Boolean
4417 |
# File 'lib/xberg/native.rb', line 4417 def code? = false |
#comment? ⇒ Boolean
4425 |
# File 'lib/xberg/native.rb', line 4425 def comment? = false |
#definition_item? ⇒ Boolean
4435 |
# File 'lib/xberg/native.rb', line 4435 def definition_item? = false |
#definition_list? ⇒ Boolean
4433 |
# File 'lib/xberg/native.rb', line 4433 def definition_list? = false |
#footnote? ⇒ Boolean
4423 |
# File 'lib/xberg/native.rb', line 4423 def footnote? = false |
#formula? ⇒ Boolean
4421 |
# File 'lib/xberg/native.rb', line 4421 def formula? = false |
#group? ⇒ Boolean
4427 |
# File 'lib/xberg/native.rb', line 4427 def group? = false |
#heading? ⇒ Boolean
4405 |
# File 'lib/xberg/native.rb', line 4405 def heading? = false |
#image? ⇒ Boolean
4415 |
# File 'lib/xberg/native.rb', line 4415 def image? = false |
#list? ⇒ Boolean
4409 |
# File 'lib/xberg/native.rb', line 4409 def list? = false |
#list_item? ⇒ Boolean
4411 |
# File 'lib/xberg/native.rb', line 4411 def list_item? = false |
#metadata_block? ⇒ 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
4429 |
# File 'lib/xberg/native.rb', line 4429 def page_break? = false |
#paragraph? ⇒ Boolean
4407 |
# File 'lib/xberg/native.rb', line 4407 def paragraph? = false |
#quote? ⇒ Boolean
4419 |
# File 'lib/xberg/native.rb', line 4419 def quote? = false |
#raw_block? ⇒ Boolean
4441 |
# File 'lib/xberg/native.rb', line 4441 def raw_block? = true |
#slide? ⇒ Boolean
4431 |
# File 'lib/xberg/native.rb', line 4431 def = false |
#table? ⇒ Boolean
4413 |
# File 'lib/xberg/native.rb', line 4413 def table? = false |
#title? ⇒ Boolean
4403 |
# File 'lib/xberg/native.rb', line 4403 def title? = false |