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



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

def title
  @title
end

#urlObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



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

def url
  @url
end

Class Method Details

.from_hash(hash) ⇒ Object



2658
2659
2660
# File 'lib/xberg/native.rb', line 2658

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2654
2655
2656
# File 'lib/xberg/native.rb', line 2654

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = true

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false