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
2672 2673 2674 |
# File 'lib/xberg/native.rb', line 2672 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2707 2708 2709 |
# File 'lib/xberg/native.rb', line 2707 def self.from_hash(hash) new(value: hash[:value] || hash["value"]) end |
Instance Method Details
#bold? ⇒ Boolean
2681 |
# File 'lib/xberg/native.rb', line 2681 def bold? = false |
#code? ⇒ Boolean
2689 |
# File 'lib/xberg/native.rb', line 2689 def code? = false |
#color? ⇒ Boolean
2699 |
# File 'lib/xberg/native.rb', line 2699 def color? = true |
#custom? ⇒ Boolean
2703 2704 2705 |
# File 'lib/xberg/native.rb', line 2703 def custom? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
2701 |
# File 'lib/xberg/native.rb', line 2701 def font_size? = false |
#highlight? ⇒ Boolean
2697 |
# File 'lib/xberg/native.rb', line 2697 def highlight? = false |
#italic? ⇒ Boolean
2683 |
# File 'lib/xberg/native.rb', line 2683 def italic? = false |
#link? ⇒ Boolean
2695 |
# File 'lib/xberg/native.rb', line 2695 def link? = false |
#strikethrough? ⇒ Boolean
2687 |
# File 'lib/xberg/native.rb', line 2687 def strikethrough? = false |
#subscript? ⇒ Boolean
2691 |
# File 'lib/xberg/native.rb', line 2691 def subscript? = false |
#superscript? ⇒ Boolean
2693 |
# File 'lib/xberg/native.rb', line 2693 def superscript? = false |
#underline? ⇒ Boolean
2685 |
# File 'lib/xberg/native.rb', line 2685 def underline? = false |