Class: ReverseMarkdown::Converters::Dd

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/converters/dd.rb

Instance Method Summary collapse

Instance Method Details

#convert(node, state = {}) ⇒ String

Parameters:

  • node (Nokogiri::XML::Element)
  • state (Hash) (defaults to: {})

Returns:

  • (String)


9
10
11
12
# File 'lib/solargraph/converters/dd.rb', line 9

def convert node, state = {}
  content = treat_children(node, state)
  ": #{content.strip}\n"
end