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
2272 2273 2274 |
# File 'lib/xberg/native.rb', line 2272 def title @title end |
#url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
2272 2273 2274 |
# File 'lib/xberg/native.rb', line 2272 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
2311 2312 2313 |
# File 'lib/xberg/native.rb', line 2311 def self.from_hash(hash) new(url: hash[:url] || hash["url"], title: hash[:title] || hash["title"]) end |
Instance Method Details
#bold? ⇒ Boolean
2285 |
# File 'lib/xberg/native.rb', line 2285 def bold? = false |
#code? ⇒ Boolean
2293 |
# File 'lib/xberg/native.rb', line 2293 def code? = false |
#color? ⇒ Boolean
2303 |
# File 'lib/xberg/native.rb', line 2303 def color? = false |
#custom? ⇒ Boolean
2307 2308 2309 |
# File 'lib/xberg/native.rb', line 2307 def custom? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
2305 |
# File 'lib/xberg/native.rb', line 2305 def font_size? = false |
#highlight? ⇒ Boolean
2301 |
# File 'lib/xberg/native.rb', line 2301 def highlight? = false |
#italic? ⇒ Boolean
2287 |
# File 'lib/xberg/native.rb', line 2287 def italic? = false |
#link? ⇒ Boolean
2299 |
# File 'lib/xberg/native.rb', line 2299 def link? = true |
#strikethrough? ⇒ Boolean
2291 |
# File 'lib/xberg/native.rb', line 2291 def strikethrough? = false |
#subscript? ⇒ Boolean
2295 |
# File 'lib/xberg/native.rb', line 2295 def subscript? = false |
#superscript? ⇒ Boolean
2297 |
# File 'lib/xberg/native.rb', line 2297 def superscript? = false |
#underline? ⇒ Boolean
2289 |
# File 'lib/xberg/native.rb', line 2289 def underline? = false |