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



2517
2518
2519
# File 'lib/xberg/native.rb', line 2517

def title
  @title
end

#urlObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2517
2518
2519
# File 'lib/xberg/native.rb', line 2517

def url
  @url
end

Class Method Details

.from_hash(hash) ⇒ Object



2556
2557
2558
# File 'lib/xberg/native.rb', line 2556

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2552
2553
2554
# File 'lib/xberg/native.rb', line 2552

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = true

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false