Class: Xberg::AnnotationKindLink

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
AnnotationKind
Defined in:
lib/xberg/native.rb

Overview

Hyperlink annotation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#titleObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2592
2593
2594
# File 'lib/xberg/native.rb', line 2592

def title
  @title
end

#urlObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2592
2593
2594
# File 'lib/xberg/native.rb', line 2592

def url
  @url
end

Class Method Details

.from_hash(hash) ⇒ Object



2631
2632
2633
# File 'lib/xberg/native.rb', line 2631

def self.from_hash(hash)
  new(url: hash[:url] || hash["url"], title: hash[:title] || hash["title"])
end

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


2605
# File 'lib/xberg/native.rb', line 2605

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


2613
# File 'lib/xberg/native.rb', line 2613

def code? = false

#color?Boolean

Returns:

  • (Boolean)


2623
# File 'lib/xberg/native.rb', line 2623

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2627
2628
2629
# File 'lib/xberg/native.rb', line 2627

def custom? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#font_size?Boolean

Returns:

  • (Boolean)


2625
# File 'lib/xberg/native.rb', line 2625

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


2621
# File 'lib/xberg/native.rb', line 2621

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


2607
# File 'lib/xberg/native.rb', line 2607

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


2619
# File 'lib/xberg/native.rb', line 2619

def link? = true

#strikethrough?Boolean

Returns:

  • (Boolean)


2611
# File 'lib/xberg/native.rb', line 2611

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


2615
# File 'lib/xberg/native.rb', line 2615

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


2617
# File 'lib/xberg/native.rb', line 2617

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


2609
# File 'lib/xberg/native.rb', line 2609

def underline? = false