diff options
author | mattn <mattn.jp@gmail.com> | 2012-04-13 18:46:43 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-04-13 18:46:43 +0900 |
commit | 963e1bcd2477cb0798b386ba4625071d0db3c6c7 (patch) | |
tree | 969f3308c718d5a21dbb128e03b9627e3edad11d | |
parent | 7e2c231888ded45c9c78d282efe3d9d6c4b2bd19 (diff) | |
download | vim-sonictemplate-963e1bcd2477cb0798b386ba4625071d0db3c6c7.tar.gz vim-sonictemplate-963e1bcd2477cb0798b386ba4625071d0db3c6c7.tar.bz2 vim-sonictemplate-963e1bcd2477cb0798b386ba4625071d0db3c6c7.zip |
add some ruby templates.
-rw-r--r-- | template/ruby/snip-class.rb | 3 | ||||
-rw-r--r-- | template/ruby/snip-each.rb | 3 | ||||
-rw-r--r-- | template/ruby/snip-module.rb | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/template/ruby/snip-class.rb b/template/ruby/snip-class.rb new file mode 100644 index 0000000..9ecefa6 --- /dev/null +++ b/template/ruby/snip-class.rb @@ -0,0 +1,3 @@ +class {{_input_:name}} + {{_cursor_}} +end diff --git a/template/ruby/snip-each.rb b/template/ruby/snip-each.rb new file mode 100644 index 0000000..2f4ecbe --- /dev/null +++ b/template/ruby/snip-each.rb @@ -0,0 +1,3 @@ +{{_input_:variable}}.each {|x| + {{_cursor_}} +} diff --git a/template/ruby/snip-module.rb b/template/ruby/snip-module.rb new file mode 100644 index 0000000..74a6b06 --- /dev/null +++ b/template/ruby/snip-module.rb @@ -0,0 +1,3 @@ +module {{_input_:name}} + {{_cursor_}} +end |