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



2352
2353
2354
# File 'lib/xberg/native.rb', line 2352

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2387
2388
2389
# File 'lib/xberg/native.rb', line 2387

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = true

#custom?Boolean

Returns:

  • (Boolean)


2383
2384
2385
# File 'lib/xberg/native.rb', line 2383

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = false

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false