mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 22:42:25 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -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}
|
||||
@@ -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}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user