aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/ruby/pattern.stpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/ruby/pattern.stpl b/template/ruby/pattern.stpl
index cc02af5..de2d925 100644
--- a/template/ruby/pattern.stpl
+++ b/template/ruby/pattern.stpl
@@ -28,4 +28,8 @@
{{_cursor_}}
}
+^\s*\zs\(\S.*\)\.p$
+ p {{$1}}{{_cursor_}}
+^\s*\zs\(\S.*\)\.puts$
+ puts {{$1}}{{_cursor_}}