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



2712
2713
2714
# File 'lib/xberg/native.rb', line 2712

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2743
2744
2745
# File 'lib/xberg/native.rb', line 2743

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = true

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false