Class: Xberg::AnnotationKindColor
- Inherits:
-
Data
- Object
- Data
- Xberg::AnnotationKindColor
- 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
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #bold? ⇒ Boolean
- #code? ⇒ Boolean
- #color? ⇒ Boolean
- #custom? ⇒ Boolean
- #font_size? ⇒ Boolean
- #highlight? ⇒ Boolean
- #italic? ⇒ Boolean
- #link? ⇒ Boolean
- #strikethrough? ⇒ Boolean
- #subscript? ⇒ Boolean
- #superscript? ⇒ Boolean
- #underline? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2360 2361 2362 |
# File 'lib/xberg/native.rb', line 2360 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2395 2396 2397 |
# File 'lib/xberg/native.rb', line 2395 def self.from_hash(hash) new(value: hash[:value] || hash["value"]) end |
Instance Method Details
#bold? ⇒ Boolean
2369 |
# File 'lib/xberg/native.rb', line 2369 def bold? = false |
#code? ⇒ Boolean
2377 |
# File 'lib/xberg/native.rb', line 2377 def code? = false |
#color? ⇒ Boolean
2387 |
# File 'lib/xberg/native.rb', line 2387 def color? = true |
#custom? ⇒ Boolean
2391 2392 2393 |
# File 'lib/xberg/native.rb', line 2391 def custom? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
2389 |
# File 'lib/xberg/native.rb', line 2389 def font_size? = false |
#highlight? ⇒ Boolean
2385 |
# File 'lib/xberg/native.rb', line 2385 def highlight? = false |
#italic? ⇒ Boolean
2371 |
# File 'lib/xberg/native.rb', line 2371 def italic? = false |
#link? ⇒ Boolean
2383 |
# File 'lib/xberg/native.rb', line 2383 def link? = false |
#strikethrough? ⇒ Boolean
2375 |
# File 'lib/xberg/native.rb', line 2375 def strikethrough? = false |
#subscript? ⇒ Boolean
2379 |
# File 'lib/xberg/native.rb', line 2379 def subscript? = false |
#superscript? ⇒ Boolean
2381 |
# File 'lib/xberg/native.rb', line 2381 def superscript? = false |
#underline? ⇒ Boolean
2373 |
# File 'lib/xberg/native.rb', line 2373 def underline? = false |