method

evaluate

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Erubi

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

evaluate(action_view_erb_handler_context) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/template/handlers/erb/erubi.rb, line 26
          def evaluate(action_view_erb_handler_context)
            src = @src
            view = Class.new(ActionView::Base) {
              include action_view_erb_handler_context._routes.url_helpers
              class_eval("define_method(:_template) { |local_assigns, output_buffer| #{src} }", defined?(@filename) ? @filename : "(erubi)", 0)
            }.empty
            view._run(:_template, nil, {}, ActionView::OutputBuffer.new)
          end
Register or log in to add new notes.