Class: ReverseMarkdown::Converters::Dt

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

Instance Method Summary collapse

Instance Method Details

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

Parameters:

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

Returns:

  • (String)


7
8
9
10
# File 'lib/solargraph/converters/dt.rb', line 7

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