Flowdock
method

add_expression

Importance_0
v7.0.0 - 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 53
          def add_expression(indicator, code)
            flush_newline_if_pending(src)

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

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