Class: Xberg::AnnotationKindFontSize

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

Overview

Font size with units (e.g. "12pt", "1.2em", "16px").

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



452
453
454
# File 'lib/xberg/native.rb', line 452

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



486
487
488
# File 'lib/xberg/native.rb', line 486

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


482
483
484
# File 'lib/xberg/native.rb', line 482

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = true

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false