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



2240
2241
2242
# File 'lib/xberg/native.rb', line 2240

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2274
2275
2276
# File 'lib/xberg/native.rb', line 2274

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = true

#custom?Boolean

Returns:

  • (Boolean)


2270
2271
2272
# File 'lib/xberg/native.rb', line 2270

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false