Skip to content

Commit 0fd6eef

Browse files
author
Bruno Sutic
committed
Ruby strf snippet
strf snippet contains a template that should format time in the same way as `Time.now` default output.
1 parent 665d9d3 commit 0fd6eef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: snippets/ruby.snippets

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ snippet debug
585585
require 'ruby-debug'; debugger; true;
586586
snippet pry
587587
require 'pry'; binding.pry
588+
snippet strf
589+
strftime("${1:%Y-%m-%d %H:%M:%S %z}")${0}
588590
#############################################
589591
# Rails snippets - for pure Ruby, see above #
590592
#############################################

0 commit comments

Comments
 (0)