Method: SlimText#to_slime
- Defined in:
- lib/eex2slime/hpricot_monkeypatches.rb
#to_slime(lvl = 0) ⇒ Object
7 8 9 10 |
# File 'lib/eex2slime/hpricot_monkeypatches.rb', line 7 def to_slime(lvl=0) return nil if textify.strip.empty? (' ' * lvl) + %(| #{textify.gsub(/\s+/, ' ').strip}) end |