Class: HtmlToMarkdown::LinkMetadata

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ LinkMetadata

Returns a new instance of LinkMetadata.

Parameters:

  • href: (String)
  • text: (String)
  • title: (String)
  • link_type: (enum_LinkType)
  • rel: (Array[String])
  • attributes: (Hash[String, String])


214
# File 'sig/types.rbs', line 214

def initialize: (href: String, text: String, ?title: String, link_type: enum_LinkType, rel: Array[String], attributes: Hash[String, String]) -> void

Instance Attribute Details

#attributes ⇒ Hash[String, String] (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String])


212
213
214
# File 'sig/types.rbs', line 212

def attributes
  @attributes
end

#href ⇒ String (readonly)

Returns the value of attribute href.

Returns:

  • (String)


207
208
209
# File 'sig/types.rbs', line 207

def href
  @href
end

Returns the value of attribute link_type.

Returns:

  • (enum_LinkType)


210
211
212
# File 'sig/types.rbs', line 210

def link_type
  @link_type
end

#rel ⇒ Array[String] (readonly)

Returns the value of attribute rel.

Returns:

  • (Array[String])


211
212
213
# File 'sig/types.rbs', line 211

def rel
  @rel
end

#text ⇒ String (readonly)

Returns the value of attribute text.

Returns:

  • (String)


208
209
210
# File 'sig/types.rbs', line 208

def text
  @text
end

#title ⇒ String? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


209
210
211
# File 'sig/types.rbs', line 209

def title
  @title
end