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
2677 2678 2679 |
# File 'lib/xberg/native.rb', line 2677 def name @name end |
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2677 2678 2679 |
# File 'lib/xberg/native.rb', line 2677 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2716 2717 2718 |
# File 'lib/xberg/native.rb', line 2716 def self.from_hash(hash) new(name: hash[:name] || hash["name"], value: hash[:value] || hash["value"]) end |
Instance Method Details
#bold? ⇒ Boolean
2690 |
# File 'lib/xberg/native.rb', line 2690 def bold? = false |
#code? ⇒ Boolean
2698 |
# File 'lib/xberg/native.rb', line 2698 def code? = false |
#color? ⇒ Boolean
2708 |
# File 'lib/xberg/native.rb', line 2708 def color? = false |
#custom? ⇒ Boolean
2712 2713 2714 |
# File 'lib/xberg/native.rb', line 2712 def custom? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
2710 |
# File 'lib/xberg/native.rb', line 2710 def font_size? = false |
#highlight? ⇒ Boolean
2706 |
# File 'lib/xberg/native.rb', line 2706 def highlight? = false |
#italic? ⇒ Boolean
2692 |
# File 'lib/xberg/native.rb', line 2692 def italic? = false |
#link? ⇒ Boolean
2704 |
# File 'lib/xberg/native.rb', line 2704 def link? = false |
#strikethrough? ⇒ Boolean
2696 |
# File 'lib/xberg/native.rb', line 2696 def strikethrough? = false |
#subscript? ⇒ Boolean
2700 |
# File 'lib/xberg/native.rb', line 2700 def subscript? = false |
#superscript? ⇒ Boolean
2702 |
# File 'lib/xberg/native.rb', line 2702 def superscript? = false |
#underline? ⇒ Boolean
2694 |
# File 'lib/xberg/native.rb', line 2694 def underline? = false |