Logo: Relish

  1. Sign in

Project: Vim-ruby-refactoring

Convert Post Conditional :RConvertPostConditional

Takes a post-conditional expression and converts it into a regular conditional statement

Shortcuts:
:RConvertPostConditional
rcpc

Scenarios
Convert a simple if post-conditional expression
Given
I have the following code:
do_something if condition
When
I go to the line and execute:
:RConvertPostConditional
Then
I should see:
if condition
  do_something 
end

Last published over 5 years ago by despo.