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



2739
2740
2741
# File 'lib/xberg/native.rb', line 2739

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2774
2775
2776
# File 'lib/xberg/native.rb', line 2774

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2770
2771
2772
# File 'lib/xberg/native.rb', line 2770

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = true

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false