Class: Nokogiri::XML::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/html2haml/html.rb

Overview

See Also:

Instance Method Summary collapse

Instance Method Details

#to_haml(tabs, options) ⇒ Object

See Also:

  • Html2haml::HTML::Node#to_haml

193
194
195
# File 'lib/html2haml/html.rb', line 193

def to_haml(tabs, options)
  (children || []).inject('') {|s, c| s << c.to_haml(0, options)}
end