Flowdock
method

add_expression

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Erubi
add_expression(indicator, code) private

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 47
          def add_expression(indicator, code)
            flush_newline_if_pending(src)

            if (indicator == "==") || @escape
              src << "@output_buffer.safe_expr_append="
            else
              src << "@output_buffer.append="
            end

            if BLOCK_EXPR.match?(code)
              src << " " << code
            else
              src << "(" << code << ");"
            end
          end
Register or log in to add new notes.