Class: Nokogiri::XML::DocumentFragment

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

Instance Method Summary collapse

Instance Method Details

#to_haml(tabs, options) ⇒ Object

See Also:

  • Html2haml::HTML::Node#to_haml


200
201
202
# File 'lib/html2haml/html.rb', line 200

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