Flowdock
method

add_expression

Importance_0
v7.1.3.2 - 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)

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

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