Class: Xberg::AnnotationKindCustom
- Inherits:
-
Data
- Object
- Data
- Xberg::AnnotationKindCustom
- Extended by:
- T::Sig
- Includes:
- AnnotationKind
- Defined in:
- lib/xberg/native.rb
Overview
Extensible annotation for format-specific styling.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#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
#name ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2752 2753 2754 |
# File 'lib/xberg/native.rb', line 2752 def name @name end |
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2752 2753 2754 |
# File 'lib/xberg/native.rb', line 2752 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2791 2792 2793 |
# File 'lib/xberg/native.rb', line 2791 def self.from_hash(hash) new(name: hash[:name] || hash["name"], value: hash[:value] || hash["value"]) end |
Instance Method Details
#bold? ⇒ Boolean
2765 |
# File 'lib/xberg/native.rb', line 2765 def bold? = false |
#code? ⇒ Boolean
2773 |
# File 'lib/xberg/native.rb', line 2773 def code? = false |
#color? ⇒ Boolean
2783 |
# File 'lib/xberg/native.rb', line 2783 def color? = false |
#custom? ⇒ Boolean
2787 2788 2789 |
# File 'lib/xberg/native.rb', line 2787 def custom? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
2785 |
# File 'lib/xberg/native.rb', line 2785 def font_size? = false |
#highlight? ⇒ Boolean
2781 |
# File 'lib/xberg/native.rb', line 2781 def highlight? = false |
#italic? ⇒ Boolean
2767 |
# File 'lib/xberg/native.rb', line 2767 def italic? = false |
#link? ⇒ Boolean
2779 |
# File 'lib/xberg/native.rb', line 2779 def link? = false |
#strikethrough? ⇒ Boolean
2771 |
# File 'lib/xberg/native.rb', line 2771 def strikethrough? = false |
#subscript? ⇒ Boolean
2775 |
# File 'lib/xberg/native.rb', line 2775 def subscript? = false |
#superscript? ⇒ Boolean
2777 |
# File 'lib/xberg/native.rb', line 2777 def superscript? = false |
#underline? ⇒ Boolean
2769 |
# File 'lib/xberg/native.rb', line 2769 def underline? = false |