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)

rubocop:disable Lint/UselessMethodDefinition



2637
2638
2639
# File 'lib/xberg/native.rb', line 2637

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2672
2673
2674
# File 'lib/xberg/native.rb', line 2672

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2668
2669
2670
# File 'lib/xberg/native.rb', line 2668

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = true

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false