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)

rubocop:disable Lint/UselessMethodDefinition



2597
2598
2599
# File 'lib/xberg/native.rb', line 2597

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2632
2633
2634
# File 'lib/xberg/native.rb', line 2632

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = true

#custom?Boolean

Returns:

  • (Boolean)


2628
2629
2630
# File 'lib/xberg/native.rb', line 2628

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false