first commit of a million rails snippets, conditions missing, command implementation missing...

This commit is contained in:
capitaomorte
2009-11-16 07:09:38 +00:00
parent ead36b2544
commit 96b5606d66
213 changed files with 1592 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: crw
# contributor: Translated from TextMate Snippet
# name: cattr_accessor
## condition: "source.ruby.rails"
# --
cattr_accessor :${0:attr_names}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: mrw
# contributor: Translated from TextMate Snippet
# name: mattr_accessor
## condition: "source.ruby.rails"
# --
mattr_accessor :${0:attr_names}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: returning
# contributor: Translated from TextMate Snippet
# name: returning do |variable| … end
## condition: "source.ruby.rails"
# --
returning ${1:variable} do${2:$(if (string= "" yas/text) "" " |")}${2:v}${2:$(if (string= "" yas/text) "" "|")}
$0
end