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



2162
2163
2164
# File 'lib/xberg/native.rb', line 2162

def title
  @title
end

#urlObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2162
2163
2164
# File 'lib/xberg/native.rb', line 2162

def url
  @url
end

Class Method Details

.from_hash(hash) ⇒ Object



2199
2200
2201
# File 'lib/xberg/native.rb', line 2199

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

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold? = false

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#color?Boolean

Returns:

  • (Boolean)


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

def color? = false

#custom?Boolean

Returns:

  • (Boolean)


2195
2196
2197
# File 'lib/xberg/native.rb', line 2195

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

#font_size?Boolean

Returns:

  • (Boolean)


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

def font_size? = false

#highlight?Boolean

Returns:

  • (Boolean)


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

def highlight? = false

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? = false

#link?Boolean

Returns:

  • (Boolean)


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

def link? = true

#strikethrough?Boolean

Returns:

  • (Boolean)


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

def strikethrough? = false

#subscript?Boolean

Returns:

  • (Boolean)


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

def subscript? = false

#superscript?Boolean

Returns:

  • (Boolean)


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

def superscript? = false

#underline?Boolean

Returns:

  • (Boolean)


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

def underline? = false