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
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
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)
Returns the value of attribute title
335 336 337 |
# File 'lib/xberg/native.rb', line 335 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url
335 336 337 |
# File 'lib/xberg/native.rb', line 335 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
372 373 374 |
# File 'lib/xberg/native.rb', line 372 def self.from_hash(hash) new(url: hash[:url] || hash["url"], title: hash[:title] || hash["title"]) end |
Instance Method Details
#bold? ⇒ Boolean
346 |
# File 'lib/xberg/native.rb', line 346 def bold? = false |
#code? ⇒ Boolean
354 |
# File 'lib/xberg/native.rb', line 354 def code? = false |
#color? ⇒ Boolean
364 |
# File 'lib/xberg/native.rb', line 364 def color? = false |
#custom? ⇒ Boolean
368 369 370 |
# File 'lib/xberg/native.rb', line 368 def custom? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#font_size? ⇒ Boolean
366 |
# File 'lib/xberg/native.rb', line 366 def font_size? = false |
#highlight? ⇒ Boolean
362 |
# File 'lib/xberg/native.rb', line 362 def highlight? = false |
#italic? ⇒ Boolean
348 |
# File 'lib/xberg/native.rb', line 348 def italic? = false |
#link? ⇒ Boolean
360 |
# File 'lib/xberg/native.rb', line 360 def link? = true |
#strikethrough? ⇒ Boolean
352 |
# File 'lib/xberg/native.rb', line 352 def strikethrough? = false |
#subscript? ⇒ Boolean
356 |
# File 'lib/xberg/native.rb', line 356 def subscript? = false |
#superscript? ⇒ Boolean
358 |
# File 'lib/xberg/native.rb', line 358 def superscript? = false |
#underline? ⇒ Boolean
350 |
# File 'lib/xberg/native.rb', line 350 def underline? = false |