method

evaluate

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Erubi
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.