module Haml::Filters::Ruby
def compile(precompiler, text)
- See: Base#compile -
def compile(precompiler, text) return if precompiler.options[:suppress_eval] precompiler.instance_eval do push_silent <<-FIRST.gsub("\n", ';') + text + <<-LAST.gsub("\n", ';') _haml_old_stdout = $stdout $stdout = StringIO.new(_hamlout.buffer, 'a') FIRST _haml_old_stdout, $stdout = $stdout, _haml_old_stdout _haml_old_stdout.close LAST end end