Class: Synvert::Core::Rewriter::ReplaceErbStmtWithExprAction
- Inherits:
-
NodeMutation::Action
- Object
- NodeMutation::Action
- Synvert::Core::Rewriter::ReplaceErbStmtWithExprAction
- Defined in:
- lib/synvert/core/rewriter/action/replace_erb_stmt_with_expr_action.rb
Overview
ReplaceErbStmtWithExprAction to replace erb stmt code to expr,
Instance Method Summary collapse
-
#initialize(node) ⇒ ReplaceErbStmtWithExprAction
constructor
Initialize a ReplaceErbStmtWithExprAction.
-
#new_code ⇒ String
The new erb expr code.
Constructor Details
#initialize(node) ⇒ ReplaceErbStmtWithExprAction
Initialize a ReplaceErbStmtWithExprAction.
11 12 13 |
# File 'lib/synvert/core/rewriter/action/replace_erb_stmt_with_expr_action.rb', line 11 def initialize(node) super(node, nil) end |
Instance Method Details
#new_code ⇒ String
The new erb expr code.
18 19 20 |
# File 'lib/synvert/core/rewriter/action/replace_erb_stmt_with_expr_action.rb', line 18 def new_code '=' end |