Method: EZML::Util#handle_interpolation

Defined in:
lib/ezml/util.rb

#handle_interpolation(str) ⇒ Object



70
71
72
73
74
# File 'lib/ezml/util.rb', line 70

def handle_interpolation(str)
  scan = StringScanner.new(str)
  yield scan while scan.scan(/(.*?)(\\*)#([\{@$])/)
  scan.rest
end