Class: Xberg::AnnotationKindColor

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
AnnotationKind
Defined in:
lib/xberg/native.rb

Overview

Text color (CSS-compatible value, e.g. "#ff0000", "red").

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



413
414
415
# File 'lib/xberg/native.rb', line 413

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



447
448
449
# File 'lib/xberg/native.rb', line 447

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = true

#custom?Boolean

Returns:

  • (Boolean)


443
444
445
# File 'lib/xberg/native.rb', line 443

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false