Method: Erubis::SchemeGenerator#add_preamble
- Defined in:
- lib/erubis/engine/escheme.rb
#add_preamble(src) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/erubis/engine/escheme.rb', line 29 def add_preamble(src) return unless @func == '_add' src << "(let ((_buf '())) " + \ "(define (_add x) (set! _buf (cons x _buf))) " #src << "(let* ((_buf '())" + \ # " (_add (lambda (x) (set! _buf (cons x _buf))))) " end |