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



2274
2275
2276
# File 'lib/xberg/native.rb', line 2274

def title
  @title
end

#urlObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2274
2275
2276
# File 'lib/xberg/native.rb', line 2274

def url
  @url
end

Class Method Details

.from_hash(hash) ⇒ Object



2313
2314
2315
# File 'lib/xberg/native.rb', line 2313

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2309
2310
2311
# File 'lib/xberg/native.rb', line 2309

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = true

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false