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



2392
2393
2394
# File 'lib/xberg/native.rb', line 2392

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


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

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = true

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false