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
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
2708 |
# File 'lib/xberg/native.rb', line 2708 def bold? = false |
#code? ⇒ Boolean
2716 |
# File 'lib/xberg/native.rb', line 2716 def code? = false |
#color? ⇒ Boolean
2726 |
# File 'lib/xberg/native.rb', line 2726 def color? = true |
#custom? ⇒ 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
2728 |
# File 'lib/xberg/native.rb', line 2728 def font_size? = false |
#highlight? ⇒ Boolean
2724 |
# File 'lib/xberg/native.rb', line 2724 def highlight? = false |
#italic? ⇒ Boolean
2710 |
# File 'lib/xberg/native.rb', line 2710 def italic? = false |
#link? ⇒ Boolean
2722 |
# File 'lib/xberg/native.rb', line 2722 def link? = false |
#strikethrough? ⇒ Boolean
2714 |
# File 'lib/xberg/native.rb', line 2714 def strikethrough? = false |
#subscript? ⇒ Boolean
2718 |
# File 'lib/xberg/native.rb', line 2718 def subscript? = false |
#superscript? ⇒ Boolean
2720 |
# File 'lib/xberg/native.rb', line 2720 def superscript? = false |
#underline? ⇒ Boolean
2712 |
# File 'lib/xberg/native.rb', line 2712 def underline? = false |