Class: Xberg::NodeContentImage

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

Overview

Image reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



3613
3614
3615
# File 'lib/xberg/native.rb', line 3613

def description
  @description
end

#image_indexObject (readonly)

Returns the value of attribute image_index

Returns:

  • (Object)

    the current value of image_index



3613
3614
3615
# File 'lib/xberg/native.rb', line 3613

def image_index
  @image_index
end

#srcObject (readonly)

Returns the value of attribute src

Returns:

  • (Object)

    the current value of src



3613
3614
3615
# File 'lib/xberg/native.rb', line 3613

def src
  @src
end

Class Method Details

.from_hash(hash) ⇒ Object



3671
3672
3673
3674
3675
3676
3677
# File 'lib/xberg/native.rb', line 3671

def self.from_hash(hash)
  new(
    description: hash[:description] || hash["description"],
    image_index: hash[:image_index] || hash["image_index"],
    src: hash[:src] || hash["src"]
  )
end

Instance Method Details

#admonition?Boolean

Returns:

  • (Boolean)


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

def admonition? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#comment?Boolean

Returns:

  • (Boolean)


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

def comment? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#footnote?Boolean

Returns:

  • (Boolean)


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

def footnote? = false

#formula?Boolean

Returns:

  • (Boolean)


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

def formula? = false

#group?Boolean

Returns:

  • (Boolean)


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

def group? = false

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


3667
3668
3669
# File 'lib/xberg/native.rb', line 3667

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

#page_break?Boolean

Returns:

  • (Boolean)


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

def page_break? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false

#title?Boolean

Returns:

  • (Boolean)


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

def title? = false