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



2699
2700
2701
# File 'lib/xberg/native.rb', line 2699

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = true

#custom?Boolean

Returns:

  • (Boolean)


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

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false