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



2400
2401
2402
# File 'lib/xberg/native.rb', line 2400

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2435
2436
2437
# File 'lib/xberg/native.rb', line 2435

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2431
2432
2433
# File 'lib/xberg/native.rb', line 2431

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = true

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false