Class: Xberg::AnnotationKindLink
- Inherits:
-
Data
- Object
- Data
- Xberg::AnnotationKindLink
- Extended by:
- T::Sig
- Includes:
- AnnotationKind
- Defined in:
- lib/xberg/native.rb
Overview
Hyperlink annotation.
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#url ⇒ 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
#title ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2162 2163 2164 |
# File 'lib/xberg/native.rb', line 2162 def title @title end |
#url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2162 2163 2164 |
# File 'lib/xberg/native.rb', line 2162 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
2199 2200 2201 |
# File 'lib/xberg/native.rb', line 2199 def self.from_hash(hash) new(url: hash[:url] || hash["url"], title: hash[:title] || hash["title"]) end |
Instance Method Details
#bold? ⇒ Boolean
2173 |
# File 'lib/xberg/native.rb', line 2173 def bold? = false |
#code? ⇒ Boolean
2181 |
# File 'lib/xberg/native.rb', line 2181 def code? = false |
#color? ⇒ Boolean
2191 |
# File 'lib/xberg/native.rb', line 2191 def color? = false |
#custom? ⇒ Boolean
2195 2196 2197 |
# File 'lib/xberg/native.rb', line 2195 def custom? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
2193 |
# File 'lib/xberg/native.rb', line 2193 def font_size? = false |
#highlight? ⇒ Boolean
2189 |
# File 'lib/xberg/native.rb', line 2189 def highlight? = false |
#italic? ⇒ Boolean
2175 |
# File 'lib/xberg/native.rb', line 2175 def italic? = false |
#link? ⇒ Boolean
2187 |
# File 'lib/xberg/native.rb', line 2187 def link? = true |
#strikethrough? ⇒ Boolean
2179 |
# File 'lib/xberg/native.rb', line 2179 def strikethrough? = false |
#subscript? ⇒ Boolean
2183 |
# File 'lib/xberg/native.rb', line 2183 def subscript? = false |
#superscript? ⇒ Boolean
2185 |
# File 'lib/xberg/native.rb', line 2185 def superscript? = false |
#underline? ⇒ Boolean
2177 |
# File 'lib/xberg/native.rb', line 2177 def underline? = false |