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
Returns the value of attribute value.
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)
Returns the value of attribute value
413 414 415 |
# File 'lib/xberg/native.rb', line 413 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
447 448 449 |
# File 'lib/xberg/native.rb', line 447 def self.from_hash(hash) new(value: hash[:value] || hash["value"]) end |
Instance Method Details
#bold? ⇒ Boolean
421 |
# File 'lib/xberg/native.rb', line 421 def bold? = false |
#code? ⇒ Boolean
429 |
# File 'lib/xberg/native.rb', line 429 def code? = false |
#color? ⇒ Boolean
439 |
# File 'lib/xberg/native.rb', line 439 def color? = true |
#custom? ⇒ Boolean
443 444 445 |
# File 'lib/xberg/native.rb', line 443 def custom? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
441 |
# File 'lib/xberg/native.rb', line 441 def font_size? = false |
#highlight? ⇒ Boolean
437 |
# File 'lib/xberg/native.rb', line 437 def highlight? = false |
#italic? ⇒ Boolean
423 |
# File 'lib/xberg/native.rb', line 423 def italic? = false |
#link? ⇒ Boolean
435 |
# File 'lib/xberg/native.rb', line 435 def link? = false |
#strikethrough? ⇒ Boolean
427 |
# File 'lib/xberg/native.rb', line 427 def strikethrough? = false |
#subscript? ⇒ Boolean
431 |
# File 'lib/xberg/native.rb', line 431 def subscript? = false |
#superscript? ⇒ Boolean
433 |
# File 'lib/xberg/native.rb', line 433 def superscript? = false |
#underline? ⇒ Boolean
425 |
# File 'lib/xberg/native.rb', line 425 def underline? = false |