module EZML::Filters::Ruby

Public Instance Methods

compile(compiler, text) click to toggle source

@see Base#compile

# File lib/ezml/filters.rb, line 151
      def compile(compiler, text)
        return if compiler.options[:suppress_eval]
        compiler.instance_eval do
          push_silent "#{<<-FIRST.tr("\n", ';')}#{text}#{<<-LAST.tr("\n", ';')}"
            begin
              ezml_io = StringIO.new(_ezmlout.buffer, 'a')
          FIRST
            ensure
              ezml_io.close
              ezml_io = nil
            end
          LAST
        end
      end