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)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



335
336
337
# File 'lib/xberg/native.rb', line 335

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = true

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false