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
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
2606 |
# File 'lib/xberg/native.rb', line 2606 def bold? = false |
#code? ⇒ Boolean
2614 |
# File 'lib/xberg/native.rb', line 2614 def code? = false |
#color? ⇒ Boolean
2624 |
# File 'lib/xberg/native.rb', line 2624 def color? = true |
#custom? ⇒ 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
2626 |
# File 'lib/xberg/native.rb', line 2626 def font_size? = false |
#highlight? ⇒ Boolean
2622 |
# File 'lib/xberg/native.rb', line 2622 def highlight? = false |
#italic? ⇒ Boolean
2608 |
# File 'lib/xberg/native.rb', line 2608 def italic? = false |
#link? ⇒ Boolean
2620 |
# File 'lib/xberg/native.rb', line 2620 def link? = false |
#strikethrough? ⇒ Boolean
2612 |
# File 'lib/xberg/native.rb', line 2612 def strikethrough? = false |
#subscript? ⇒ Boolean
2616 |
# File 'lib/xberg/native.rb', line 2616 def subscript? = false |
#superscript? ⇒ Boolean
2618 |
# File 'lib/xberg/native.rb', line 2618 def superscript? = false |
#underline? ⇒ Boolean
2610 |
# File 'lib/xberg/native.rb', line 2610 def underline? = false |