Class: Hpricot::Doc

Inherits:
Object
  • Object
show all
Defined in:
lib/eex2slime/hpricot_monkeypatches.rb

Instance Method Summary collapse

Instance Method Details

#to_slimeObject



205
206
207
208
209
210
211
# File 'lib/eex2slime/hpricot_monkeypatches.rb', line 205

def to_slime
  if respond_to?(:children) && children
    children.map(&:to_slime).reject(&:nil?).join("\n")
  else
    ''
  end
end