Class: HtmlToMarkdown::LinkMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLinkMetadata

Returns a new instance of LinkMetadata.

Parameters:

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


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

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

Instance Attribute Details

#attributesHash[String, String] (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String])


45
46
47
# File 'sig/types.rbs', line 45

def attributes
  @attributes
end

#hrefString (readonly)

Returns the value of attribute href.

Returns:

  • (String)


40
41
42
# File 'sig/types.rbs', line 40

def href
  @href
end

Returns the value of attribute link_type.

Returns:



43
44
45
# File 'sig/types.rbs', line 43

def link_type
  @link_type
end

#relArray[String] (readonly)

Returns the value of attribute rel.

Returns:

  • (Array[String])


44
45
46
# File 'sig/types.rbs', line 44

def rel
  @rel
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


41
42
43
# File 'sig/types.rbs', line 41

def text
  @text
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


42
43
44
# File 'sig/types.rbs', line 42

def title
  @title
end