Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adds "key" to all snippets

YASnippet no longer use filenames as triggers, see
capitaomorte/yasnippet@238e46a
  • Loading branch information...
commit 1f88e866f306a78cc7b981a35b1c09ebb794b99f 1 parent c16d543
Xavier Noria authored November 29, 2011

Showing 277 changed files with 277 additions and 0 deletions. Show diff stats Hide diff stats

  1. 1  !env
  2. 1  #
  3. 1  :
  4. 1  Array
  5. 1  Comp
  6. 1  Dir
  7. 1  Enum
  8. 1  File
  9. 1  File.1
  10. 1  File.2
  11. 1  Forw-
  12. 1  Hash
  13. 1  Md
  14. 1  Ml
  15. 1  Pn-
  16. 1  Yd-
  17. 1  Yl-
  18. 1  aa
  19. 1  ae
  20. 1  ako
  21. 1  all
  22. 1  am
  23. 1  ann
  24. 1  any
  25. 1  app
  26. 1  ar
  27. 1  ars
  28. 1  art
  29. 1  as
  30. 1  ase
  31. 1  asid
  32. 1  asio
  33. 1  asko
  34. 1  asm
  35. 1  asn
  36. 1  asne
  37. 1  asnm
  38. 1  asnn
  39. 1  asnr
  40. 1  asns
  41. 1  asnt
  42. 1  aso
  43. 1  asr
  44. 1  asrt
  45. 1  ass
  46. 1  ass.1
  47. 1  ast
  48. 1  begin
  49. 1  bm
  50. 1  bm-
  51. 1  bt
  52. 1  case
  53. 1  cl
  54. 1  cla
  55. 1  cla-
  56. 1  cla.1
  57. 1  cla.2
  58. 1  cla.3
  59. 1  cla.4
  60. 1  clafn
  61. 1  class
  62. 1  classify
  63. 1  cls
  64. 1  col
  65. 1  collect
  66. 1  dee
  67. 1  deec
  68. 1  def
  69. 1  defd
  70. 1  defds
  71. 1  defmm
  72. 1  defs
  73. 1  deft
  74. 1  deli
  75. 1  desc
  76. 1  det
  77. 1  do
  78. 1  dow
  79. 1  ea
  80. 1  eab
  81. 1  eac
  82. 1  eac-
  83. 1  eai
  84. 1  eak
  85. 1  eal
  86. 1  eap
  87. 1  eas-
  88. 1  eav
  89. 1  eawi
  90. 1  fet
  91. 1  fil
  92. 1  filedn
  93. 1  fin
  94. 1  fina
  95. 1  fl
  96. 1  flao
  97. 1  flsh
  98. 1  forin
  99. 1  gre
  100. 1  gsu
  101. 1  hm
  102. 1  ho
  103. 1  i
  104. 1  if
  105. 1  ife
  106. 1  inj
  107. 1  inject
  108. 1  lam
  109. 1  logi
  110. 1  loo
  111. 1  map
  112. 1  mapwi-
  113. 1  max
  114. 1  min
  115. 1  mm
  116. 1  mod
  117. 1  mod.1
  118. 1  module
  119. 1  nam
  120. 1  ope
  121. 1  opt
  122. 1  optp
  123. 1  par
  124. 1  patfh
  125. 1  pend
  126. 1  r
  127. 1  ra
  128. 1  ral
  129. 1  ran
  130. 1  rb
  131. 1  rcea
  132. 1  rcec
  133. 1  rceca
  134. 1  rea
  135. 1  reai
  136. 1  rec
  137. 1  reca
  138. 1  recai
  139. 1  rej
  140. 1  reject
  141. 1  rep
  142. 1  req
  143. 1  res
  144. 1  reve
  145. 1  rf
  146. 1  rfu
  147. 1  ri
  148. 1  ril
  149. 1  rit
  150. 1  rl
  151. 1  rn
  152. 1  rns
  153. 1  rp
  154. 1  rpc
  155. 1  rpl
  156. 1  rpo
  157. 1  rps
  158. 1  rreq
  159. 1  rspec-mode/aft
  160. 1  rspec-mode/annot
  161. 1  rspec-mode/anr
  162. 1  rspec-mode/anra
  163. 1  rspec-mode/anrb
  164. 1  rspec-mode/ant
  165. 1  rspec-mode/any
  166. 1  rspec-mode/atl
  167. 1  rspec-mode/atm
  168. 1  rspec-mode/bef
  169. 1  rspec-mode/befm
  170. 1  rspec-mode/bfe
  171. 1  rspec-mode/conn
  172. 1  rspec-mode/des
  173. 1  rspec-mode/desc
  174. 1  rspec-mode/desrc.delete
  175. 1  rspec-mode/desrc.get
  176. 1  rspec-mode/desrc.post
  177. 1  rspec-mode/desrc.put
  178. 1  rspec-mode/dest
  179. 1  rspec-mode/dests
  180. 1  rspec-mode/ex
  181. 1  rspec-mode/fm
  182. 1  rspec-mode/fmar
  183. 1  rspec-mode/it
  184. 1  rspec-mode/mat
  185. 1  rspec-mode/mocw.flexmock
  186. 1  rspec-mode/mocw.mocha
  187. 1  rspec-mode/mocw.rr
  188. 1  rspec-mode/on
  189. 1  rspec-mode/resh
  190. 1  rspec-mode/sce
  191. 1  rspec-mode/set
  192. 1  rspec-mode/sh=
  193. 1  rspec-mode/shb
  194. 1  rspec-mode/shbc
  195. 1  rspec-mode/shbio
  196. 1  rspec-mode/shbko
  197. 1  rspec-mode/shbr
  198. 1  rspec-mode/shbs
  199. 1  rspec-mode/she.eql
  200. 1  rspec-mode/she.equal
  201. 1  rspec-mode/shh
  202. 1  rspec-mode/shhal
  203. 1  rspec-mode/shham
  204. 1  rspec-mode/shhr
  205. 1  rspec-mode/shm.match
  206. 1  rspec-mode/shn=
  207. 1  rspec-mode/shnb
  208. 1  rspec-mode/shnbc
  209. 1  rspec-mode/shnbio
  210. 1  rspec-mode/shnbko
  211. 1  rspec-mode/shnbr
  212. 1  rspec-mode/shnbs
  213. 1  rspec-mode/shne.eql
  214. 1  rspec-mode/shne.equal
  215. 1  rspec-mode/shnm.match
  216. 1  rspec-mode/shnp
  217. 1  rspec-mode/shnr
  218. 1  rspec-mode/shnre
  219. 1  rspec-mode/shnrt
  220. 1  rspec-mode/shns
  221. 1  rspec-mode/shnt
  222. 1  rspec-mode/shp
  223. 1  rspec-mode/shr
  224. 1  rspec-mode/shre
  225. 1  rspec-mode/shrt
  226. 1  rspec-mode/shrt.redirect
  227. 1  rspec-mode/shrt.render
  228. 1  rspec-mode/shrt.respond
  229. 1  rspec-mode/shs
  230. 1  rspec-mode/sht
  231. 1  rspec-mode/sto
  232. 1  rspec-mode/stub
  233. 1  rspec-mode/tw
  234. 1  rspec-mode/wia
  235. 1  rt
  236. 1  rtl
  237. 1  rtlt
  238. 1  rts
  239. 1  rw
  240. 1  sca
  241. 1  sel
  242. 1  select
  243. 1  ses
  244. 1  sinc
  245. 1  sor
  246. 1  sorb
  247. 1  sr
  248. 1  ste
  249. 1  sub
  250. 1  task
  251. 1  task.1
  252. 1  tc
  253. 1  tim
  254. 1  tra
  255. 1  ts
  256. 1  unif
  257. 1  unless
  258. 1  until
  259. 1  upt
  260. 1  usai
  261. 1  usau
  262. 1  va
  263. 1  vc
  264. 1  ve
  265. 1  vf
  266. 1  vi
  267. 1  vn
  268. 1  vp
  269. 1  vu
  270. 1  w
  271. 1  when
  272. 1  while
  273. 1  xml-
  274. 1  xpa
  275. 1  y
  276. 1  zip
  277. 1  {
1  !env
... ...
@@ -1,3 +1,4 @@
1 1
 #name : /usr/bin/env ruby
  2
+# key: !env
2 3
 # --
3 4
 #!/usr/bin/env ruby
1  #
... ...
@@ -1,3 +1,4 @@
1 1
 #name : # =>
  2
+# key: #
2 3
 # --
3 4
 # => 
1  :
... ...
@@ -1,3 +1,4 @@
1 1
 #name : :key => "value"
  2
+# key: :
2 3
 # --
3 4
 :${key} => ${"value"}
1  Array
... ...
@@ -1,4 +1,5 @@
1 1
 #name : Array.new(10) { |i| ... }
2 2
 #group : Arrays
  3
+# key: Array
3 4
 # --
4 5
 Array.new(${10}) { |${i}| $0 }
1  Comp
... ...
@@ -1,4 +1,5 @@
1 1
 #name : include Comparable; def <=> ... end
  2
+# key: Comp
2 3
 # --
3 4
 include Comparable
4 5
 
1  Dir
... ...
@@ -1,4 +1,5 @@
1 1
 #name : Dir.glob("..") do |file| .. end
2 2
 #group : Files
  3
+# key: Dir
3 4
 # --
4 5
 Dir.glob(${1:"dir/glob/*}") { |${2:file}| $0 }
1  Enum
... ...
@@ -1,5 +1,6 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: Enum
3 4
 # --
4 5
 include Enumerable
5 6
 
1  File
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Files
  3
+# key: File
3 4
 # --
4 5
 File.foreach(${1:"${2:path/to/file}"}) { |${3:line}| $0 }
1  File.1
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Files
  3
+# key: File.1
3 4
 # --
4 5
 File.open(${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:file}| $0 }
1  File.2
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Files
  3
+# key: File.2
3 4
 # --
4 5
 File.read(${1:"${2:path/to/file}"})
1  Forw-
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: Forw-
2 3
 # --
3 4
 extend Forwardable
1  Hash
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Hashes
  3
+# key: Hash
3 4
 # --
4 5
 Hash.new { |${1:hash}, ${2:key}| ${1:hash}[${2:key}] = $0 }
1  Md
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: Md
2 3
 # --
3 4
 File.open(${1:"${2:path/to/file}.dump"}, "w") { |${3:file}| Marshal.dump(${4:obj}, ${3:file}) }
1  Ml
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: Ml
2 3
 # --
3 4
 File.open(${1:"${2:path/to/file}.dump"}) { |${3:file}| Marshal.load(${3:file}) }
1  Pn-
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: Pn-
2 3
 # --
3 4
 PStore.new(${1:"${2:file_name.pstore}"})
1  Yd-
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: Yd-
2 3
 # --
3 4
 File.open(${1:"${2:path/to/file}.yaml"}, "w") { |${3:file}| YAML.dump(${4:obj}, ${3:file}) }
1  Yl-
... ...
@@ -1,3 +1,4 @@
1 1
 #name : YAML.load(file)
  2
+# key: Yl-
2 3
 # --
3 4
 File.open("${1:path/to/file.yaml}") { |${2:file}| YAML.load(${2:file}) }
1  aa
... ...
@@ -1,3 +1,4 @@
1 1
 #name : attr_accesor :...
  2
+# key: aa
2 3
 # --
3 4
 attr_accessor :$0
1  ae
... ...
@@ -1,4 +1,5 @@
1 1
 #name : assert_equal  ... ,  ... 
2 2
 #group: assert
  3
+# key: ae
3 4
 # --
4 5
 assert_equal ${expected}, ${actual}
1  ako
... ...
@@ -1,4 +1,5 @@
1 1
 #name : assert_kind_of  ... ,  ... 
2 2
 #group: assert
  3
+# key: ako
3 4
 # --
4 5
 assert_kind_of ${class}, ${object}
1  all
... ...
@@ -1,4 +1,5 @@
1 1
 #name : all? { |...| ... }
2 2
 #group : Enumerables
  3
+# key: all
3 4
 # --
4 5
 all? { |${e}| $0 }
1  am
... ...
@@ -1,3 +1,4 @@
1 1
 #name : alias_method new, old
  2
+# key: am
2 3
 # --
3 4
 alias_method :${new_name}, :${old_name}
1  ann
... ...
@@ -1,4 +1,5 @@
1 1
 #name : assert_not_nil  ... 
2 2
 #group: assert
  3
+# key: ann
3 4
 # --
4 5
 assert_not_nil ${object}
1  any
... ...
@@ -1,4 +1,5 @@
1 1
 #name : any? { |...| ... }
2 2
 #group : Enumerables
  3
+# key: any
3 4
 # --
4 5
 any? { |${e}| $0 }
1  app
... ...
@@ -1,4 +1,5 @@
1 1
 #name : if __FILE__ == $PROGRAM_NAME ... end
  2
+# key: app
2 3
 # --
3 4
 if __FILE__ == $PROGRAM_NAME
4 5
   $0
1  ar
... ...
@@ -1,3 +1,4 @@
1 1
 #name : attr_reader :...
  2
+# key: ar
2 3
 # --
3 4
 attr_reader :$0
1  ars
... ...
@@ -1,4 +1,5 @@
1 1
 #name : assert_response : ... 
2 2
 #group: assert
  3
+# key: ars
3 4
 # --
4 5
 assert_response :${success}
1  art
... ...
@@ -1,4 +1,5 @@
1 1
 #name : assert_redirected_to :controller => " ... "
2 2
 #group: assert
  3
+# key: art
3 4
 # --
4 5
 assert_redirected_to :controller => "${controller}"
1  as
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: as
3 4
 # --
4 5
 assert`snippet_paren.rb`${1:test}, "${0:Failure message.}"`snippet_paren.rb end`
1  ase
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: ase
3 4
 # --
4 5
 assert_equal`snippet_paren.rb`${1:expected}, ${0:actual}`snippet_paren.rb end`
1  asid
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asid
3 4
 # --
4 5
 assert_in_delta`snippet_paren.rb`${1:expected_float}, ${2:actual_float}, ${0:2 ** -20}`snippet_paren.rb end`
1  asio
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asio
3 4
 # --
4 5
 assert_instance_of`snippet_paren.rb`${1:ExpectedClass}, ${0:actual_instance}`snippet_paren.rb end`
1  asko
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asko
3 4
 # --
4 5
 assert_kind_of`snippet_paren.rb`${1:ExpectedKind}, ${0:actual_instance}`snippet_paren.rb end`
1  asm
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asm
3 4
 # --
4 5
 assert_match`snippet_paren.rb`/${1:expected_pattern}/, ${0:actual_string}`snippet_paren.rb end`
1  asn
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asn
3 4
 # --
4 5
 assert_nil`snippet_paren.rb`${0:instance}`snippet_paren.rb end`
1  asne
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asne
3 4
 # --
4 5
 assert_not_equal`snippet_paren.rb`${1:unexpected}, ${0:actual}`snippet_paren.rb end`
1  asnm
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asnm
3 4
 # --
4 5
 assert_no_match`snippet_paren.rb`/${1:unexpected_pattern}/, ${0:actual_string}`snippet_paren.rb end`
1  asnn
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asnn
3 4
 # --
4 5
 assert_not_nil`snippet_paren.rb`${0:instance}`snippet_paren.rb end`
1  asnr
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asnr
3 4
 # --
4 5
 assert_nothing_raised(${1:Exception}) { $0 }
1  asns
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asns
3 4
 # --
4 5
 assert_not_same`snippet_paren.rb`${1:unexpected}, ${0:actual}`snippet_paren.rb end`
1  asnt
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asnt
3 4
 # --
4 5
 assert_nothing_thrown { $0 }
1  aso
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: aso
3 4
 # --
4 5
 assert_operator`snippet_paren.rb`${1:left}, :${2:operator}, ${0:right}`snippet_paren.rb end`
1  asr
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asr
3 4
 # --
4 5
 assert_raise(${1:Exception}) { $0 }
1  asrt
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: asrt
3 4
 # --
4 5
 assert_respond_to`snippet_paren.rb`${1:object}, :${0:method}`snippet_paren.rb end`
1  ass
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: ass
3 4
 # --
4 5
 assert_same`snippet_paren.rb`${1:expected}, ${0:actual}`snippet_paren.rb end`
1  ass.1
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: ass.1
3 4
 # --
4 5
 assert_send`snippet_paren.rb`[${1:object}, :${2:message}, ${0:args}]`snippet_paren.rb end`
1  ast
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Tests
  3
+# key: ast
3 4
 # --
4 5
 assert_throws(:${1:expected}) { $0 }
1  begin
... ...
@@ -1,5 +1,6 @@
1 1
 #name : begin ... rescue ... end
2 2
 #group : Blocks
  3
+# key: begin
3 4
 # --
4 5
 begin
5 6
   $3
1  bm
... ...
@@ -1,4 +1,5 @@
1 1
 #name : Benchmark.bmbm(...) do ... end
  2
+# key: bm
2 3
 # --
3 4
 Benchmark.bmbm(${1:10}) do |x|
4 5
   $0
1  bm-
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: bm-
2 3
 # --
3 4
 TESTS = ${1:10_000}
4 5
 Benchmark.bmbm do |results|
1  bt
... ...
@@ -1,4 +1,5 @@
1 1
 #name : belongs_to : ... 
2 2
 #group: ActiveRecord
  3
+# key: bt
3 4
 # --
4 5
 belongs_to :${class}
1  case
... ...
@@ -1,5 +1,6 @@
1 1
 #name : case ... end
2 2
 #group : Conditions
  3
+# key: case
3 4
 # --
4 5
 case ${1:object}
5 6
 when ${2:condition}
1  cl
... ...
@@ -1,3 +1,4 @@
1 1
 #name : classify { |...| ... }
  2
+# key: cl
2 3
 # --
3 4
 classify { |${e}| $0 }
1  cla
... ...
@@ -1,5 +1,6 @@
1 1
 #name : class << self ... end
2 2
 #group : definitions
  3
+# key: cla
3 4
 # --
4 5
 class << ${self}
5 6
   $0
1  cla-
... ...
@@ -1,5 +1,6 @@
1 1
 #name : class .. < DelegateClass .. initialize .. end  (class)
2 2
 #group : definitions
  3
+# key: cla-
3 4
 # --
4 5
 class ${1:ClassName} < DelegateClass(${2:ParentClass})
5 6
   def initialize(${3:args})
1  cla.1
... ...
@@ -1,5 +1,6 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : definitions
  3
+# key: cla.1
3 4
 # --
4 5
 ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} = Struct.new(:${2:attr_names}) do
5 6
   def ${3:method_name}
1  cla.2
... ...
@@ -1,5 +1,6 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : definitions
  3
+# key: cla.2
3 4
 # --
4 5
 class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
5 6
   $0
1  cla.3
... ...
@@ -1,5 +1,6 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : definitions
  3
+# key: cla.3
3 4
 # --
4 5
 class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
5 6
   def initialize${2/(^.*?\S.*)|.*/(?1:\()/}${2:args}${2/(^.*?\S.*)|.*/(?1:\))/}
1  cla.4
... ...
@@ -1,5 +1,6 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : definitions
  3
+# key: cla.4
3 4
 # --
4 5
 class ${1:BlankSlate}
5 6
   instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ }
1  clafn
... ...
@@ -1,3 +1,4 @@
1 1
 #name : class_from_name()
  2
+# key: clafn
2 3
 # --
3 4
 split("::").inject(Object) { |par, const| par.const_get(const) }
1  class
... ...
@@ -1,6 +1,7 @@
1 1
 #name : class ... end
2 2
 #contributor : hitesh <hitesh.jasani@gmail.com>
3 3
 #group : definitions
  4
+# key: class
4 5
 # --
5 6
 class ${1:$
6 7
          (let ((fn (capitalize (file-name-nondirectory
1  classify
... ...
@@ -1,4 +1,5 @@
1 1
 #name : classify { |...| ... }
2 2
 #group : collections
  3
+# key: classify
3 4
 # --
4 5
 classify { |${e}| $0 }
1  cls
... ...
@@ -1,4 +1,5 @@
1 1
 #name : class ... end
  2
+# key: cls
2 3
 # --
3 4
 class ${Name}
4 5
   $0
1  col
... ...
@@ -1,4 +1,5 @@
1 1
 #name : collect { |e| ... }
2 2
 #group : Enumerables
  3
+# key: col
3 4
 # --
4 5
 collect { |${e}| $0 }
1  collect
... ...
@@ -1,4 +1,5 @@
1 1
 #name : collect { |...| ... }
2 2
 #group : Enumerables
  3
+# key: collect
3 4
 # --
4 5
 collect { |${e}| $0 }
1  dee
... ...
@@ -1,3 +1,4 @@
1 1
 #name : deep_copy(...)
  2
+# key: dee
2 3
 # --
3 4
 Marshal.load(Marshal.dump($0))
1  deec
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: deec
2 3
 # --
3 4
 Marshal.load(Marshal.dump(${0:obj_to_copy}))
1  def
... ...
@@ -1,5 +1,6 @@
1 1
 #name : def ... end
2 2
 #group : definitions
  3
+# key: def
3 4
 # --
4 5
 def ${1:method_name}
5 6
   $0
1  defd
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: defd
2 3
 # --
3 4
 def_delegator :${1:@del_obj}, :${2:del_meth}, :${3:new_name}
1  defds
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: defds
2 3
 # --
3 4
 def_delegators :${1:@del_obj}, :${0:del_methods}
1  defmm
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: defmm
2 3
 # --
3 4
 def method_missing(meth, *args, &blk)
4 5
   $0
1  defs
... ...
@@ -1,4 +1,5 @@
1 1
 #name : def.self ... end
  2
+# key: defs
2 3
 # --
3 4
 def self.${1:class_method_name}
4 5
   $0
1  deft
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: deft
2 3
 # --
3 4
 def test_${1:case_name}
4 5
   $0
1  deli
... ...
@@ -1,3 +1,4 @@
1 1
 #name : delete_if { |...| ... }
  2
+# key: deli
2 3
 # --
3 4
 delete_if { |${e} $0 }
1  desc
... ...
@@ -1,4 +1,5 @@
1 1
 #name : describe (rspec)
  2
+# key: desc
2 3
 # --
3 4
 describe "${1:method}" do
4 5
   it$0
1  det
... ...
@@ -1,4 +1,5 @@
1 1
 #name : detect { |...| ... }
2 2
 #group : Enumerables
  3
+# key: det
3 4
 # --
4 5
 detect { |${e}| $0 }
1  do
... ...
@@ -1,5 +1,6 @@
1 1
 #name : do |variable| ... end
2 2
 #group : Blocks
  3
+# key: do
3 4
 # --
4 5
 do |${1:variable}|
5 6
   $0
1  dow
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Loops
  3
+# key: dow
3 4
 # --
4 5
 downto(${1:0}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
1  ea
... ...
@@ -1,3 +1,4 @@
1 1
 #name : each { |...| ... }
  2
+# key: ea
2 3
 # --
3 4
 each { |${e}| $0 }
1  eab
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: eab
2 3
 # --
3 4
 each_byte { |${1:byte}| $0 }
1  eac
... ...
@@ -1,4 +1,5 @@
1 1
 #name : each_cons(...) { |...| ... }
2 2
 #group : Enumerables
  3
+# key: eac
3 4
 # --
4 5
 each_cons(${1:2}) { |${group}| $0 }
1  eac-
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: eac-
2 3
 # --
3 4
 each_char { |${1:chr}| $0 }
1  eai
... ...
@@ -1,3 +1,4 @@
1 1
 #name : each_index { |i| ... }
  2
+# key: eai
2 3
 # --
3 4
 each_index { |${i}| $0 }
1  eak
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: eak
2 3
 # --
3 4
 each_key { |${1:key}| $0 }
1  eal
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: eal
2 3
 # --
3 4
 each_line$1 { |${2:line}| $0 }
1  eap
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: eap
2 3
 # --
3 4
 each_pair { |${1:name}, ${2:val}| $0 }
1  eas-
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: eas-
3 4
 # --
4 5
 each_slice(${1:2}) { |${2:group}| $0 }
1  eav
... ...
@@ -1,3 +1,4 @@
1 1
 #name : each_value { |val| ... }
  2
+# key: eav
2 3
 # --
3 4
 each_value { |${val}| $0 }
1  eawi
... ...
@@ -1,4 +1,5 @@
1 1
 #name : each_with_index { |e, i| ... }
2 2
 #group : Enumerables
  3
+# key: eawi
3 4
 # --
4 5
 each_with_index { |${e}, ${i}| $0 }
1  fet
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: fet
2 3
 # --
3 4
 fetch(${1:name}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:key}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
1  fil
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: fil
2 3
 # --
3 4
 fill(${1:range}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:i}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
1  filedn
... ...
@@ -1,4 +1,5 @@
1 1
 #name : File.dirname(__FILE__)
2 2
 #group : Files
  3
+# key: filedn
3 4
 # --
4 5
 File.dirname(${1:__FILE__}) + "/$0"
1  fin
... ...
@@ -1,4 +1,5 @@
1 1
 #name : find { |e| .. }
2 2
 #group : Enumerables
  3
+# key: fin
3 4
 # --
4 5
 find { |${1:e}| $0 }
1  fina
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: fina
3 4
 # --
4 5
 find_all { |${1:e}| $0 }
1  fl
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: fl
2 3
 # --
3 4
 flunk`snippet_paren.rb`"${0:Failure message.}"`snippet_paren.rb end`
1  flao
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Arrays
  3
+# key: flao
3 4
 # --
4 5
 inject(Array.new) { |${1:arr}, ${2:a}| ${1:arr}.push(*${2:a}) }
1  flsh
... ...
@@ -1,4 +1,5 @@
1 1
 #name : flash[: ... ] = " ... "
2 2
 #group: Rails
  3
+# key: flsh
3 4
 # --
4 5
 flash[:${notice}] = "${Text here...}"
1  forin
... ...
@@ -1,5 +1,6 @@
1 1
 #name : for ... in ...; ... end
2 2
 #group : Loops
  3
+# key: forin
3 4
 # --
4 5
 for ${1:element} in ${2:collection}
5 6
   $0
1  gre
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: gre
3 4
 # --
4 5
 grep(${1:/${2:pattern}/}) { |${3:match}| $0 }
1  gsu
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: gsu
2 3
 # --
3 4
 gsub(/${1:pattern}/) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
1  hm
... ...
@@ -1,4 +1,5 @@
1 1
 #name : has_many : ... 
2 2
 #group: ActiveRecord
  3
+# key: hm
3 4
 # --
4 5
 has_many :${class}
1  ho
... ...
@@ -1,4 +1,5 @@
1 1
 #name : has_one : ... 
2 2
 #group: ActiveRecord
  3
+# key: ho
3 4
 # --
4 5
 has_one :${class}
1  i
... ...
@@ -1,4 +1,5 @@
1 1
 #name : def initialize(...) ... end
  2
+# key: i
2 3
 # --
3 4
 def initialize(${1:params})
4 5
   ${2:body}
1  if
... ...
@@ -1,6 +1,7 @@
1 1
 # -*- mode: yasnippet -*-
2 2
 #name : if ... end
3 3
 #group : Conditions
  4
+# key: if
4 5
 # --
5 6
 if ${1:condition}
6 7
   $0
1  ife
... ...
@@ -1,5 +1,6 @@
1 1
 #name : if ... else ... end
2 2
 #group : Conditions
  3
+# key: ife
3 4
 # --
4 5
 if ${1:condition}
5 6
   $2
1  inj
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: inj
3 4
 # --
4 5
 inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 }
1  inject
... ...
@@ -1,4 +1,5 @@
1 1
 #name : inject(...) { |...| ... }
2 2
 #group : Enumerables
  3
+# key: inject
3 4
 # --
4 5
 inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
1  lam
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: lam
2 3
 # --
3 4
 lambda { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:args}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
1  logi
... ...
@@ -1,4 +1,5 @@
1 1
 #name : logger.info " ... "
2 2
 #group: general
  3
+# key: logi
3 4
 # --
4 5
 logger.info "${Text here...}"
1  loo
... ...
@@ -1,4 +1,5 @@
1 1
 #name : loop { .. }
2 2
 #group : Loops
  3
+# key: loo
3 4
 # --
4 5
 loop { $0 }
1  map
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: map
3 4
 # --
4 5
 map { |${1:e}| $0 }
1  mapwi-
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: mapwi-
3 4
 # --
4 5
 enum_with_index.map { |${1:e}, ${2:i}| $0 }
1  max
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: max
3 4
 # --
4 5
 max { |a, b| $0 }
1  min
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: min
3 4
 # --
4 5
 min { |a, b| $0 }
1  mm
... ...
@@ -1,4 +1,5 @@
1 1
 #name : def method_missing ... end
  2
+# key: mm
2 3
 # --
3 4
 def method_missing(method, *args)
4 5
   $0
1  mod
... ...
@@ -1,4 +1,5 @@
1 1
 #name : module ModuleName ... end
  2
+# key: mod
2 3
 # --
3 4
 module ${ModuleName}
4 5
   $0
1  mod.1
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: mod.1
2 3
 # --
3 4
 module ${1:ModuleName}
4 5
   module ClassMethods
1  module
... ...
@@ -1,4 +1,5 @@
1 1
 #name : module ModuleName ... end
  2
+# key: module
2 3
 # --
3 4
 module ${ModuleName}
4 5
   $0
1  nam
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: nam
2 3
 # --
3 4
 namespace :${1:${TM_FILENAME/\.\w+//}} do
4 5
   $0
1  ope
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: ope
2 3
 # --
3 4
 open(${1:"${2:path/or/url/or/pipe}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:io}| $0 }
1  opt
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: opt
2 3
 # --
3 4
 opts.on( "-${1:o}", "--${2:long-option-name}"${3/^\s*$|(.*\S.*)/(?1:, )/}${3:String},
4 5
          "${4:Option description.}" ) do |${6:opt}|
1  optp
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: optp
2 3
 # --
3 4
 require "optparse"
4 5
 
1  par
... ...
@@ -1,4 +1,5 @@
1 1
 #name : params[: ... ]
2 2
 #group: Rails
  3
+# key: par
3 4
 # --
4 5
 params[:${id}]
1  patfh
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: patfh
2 3
 # --
3 4
 File.join(File.dirname(__FILE__), *%w[${1:rel path here}])
1  pend
... ...
@@ -1,3 +1,4 @@
1 1
 #name : program end
  2
+# key: pend
2 3
 # --
3 4
 __END__
1  r
... ...
@@ -1,3 +1,4 @@
1 1
 #name : attr_reader ...
  2
+# key: r
2 3
 # --
3 4
 attr_reader :
1  ra
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render :action => " ... "
2 2
 #group: Rails render
  3
+# key: ra
3 4
 # --
4 5
 render :action => "${action}"
1  ral
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render :action => " ... ", :layout => " ... "
2 2
 #group: Rails render
  3
+# key: ral
3 4
 # --
4 5
 render :action => "${action}", :layout => "${layoutname}"
1  ran
... ...
@@ -1,4 +1,5 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
2 2
 #group : Enumerables
  3
+# key: ran
3 4
 # --
4 5
 sort_by { rand }
1  rb
... ...
@@ -1,4 +1,5 @@
1 1
 #name : /usr/bin/ruby -wKU
2 2
 #group : general
  3
+# key: rb
3 4
 # --
4 5
 #!/usr/bin/ruby -wKU
1  rcea
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render_component :action => " ... "
2 2
 #group: Rails render
  3
+# key: rcea
3 4
 # --
4 5
 render_component :action => "${index}"
1  rcec
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render_component :controller => " ... "
2 2
 #group: Rails render
  3
+# key: rcec
3 4
 # --
4 5
 render_component :controller => "${items}"
1  rceca
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render_component :controller => " ... ", :action => " ... "
2 2
 #group: Rails render
  3
+# key: rceca
3 4
 # --
4 5
 render_component :controller => "${items}", :action => "${index}"
1  rea
... ...
@@ -1,4 +1,5 @@
1 1
 #name : redirect_to :action => " ... "
2 2
 #group: Rails redirect
  3
+# key: rea
3 4
 # --
4 5
 redirect_to :action => "${index}"
1  reai
... ...
@@ -1,4 +1,5 @@
1 1
 #name : redirect_to :action => " ... ", :id =>  ... 
2 2
 #group: Rails redirect
  3
+# key: reai
3 4
 # --
4 5
 redirect_to :action => "${show}", :id => ${@item}
1  rec
... ...
@@ -1,4 +1,5 @@
1 1
 #name : redirect_to :controller => " ... "
2 2
 #group: Rails redirect
  3
+# key: rec
3 4
 # --
4 5
 redirect_to :controller => "${items}"
1  reca
... ...
@@ -1,4 +1,5 @@
1 1
 #name : redirect_to :controller => " ... ", :action => " ... "
2 2
 #group: Rails redirect
  3
+# key: reca
3 4
 # --
4 5
 redirect_to :controller => "${items}", :action => "${list}"
1  recai
... ...
@@ -1,4 +1,5 @@
1 1
 #name : redirect_to :controller => " ... ", :action => " ... ", :id =>  ... 
2 2
 #group: Rails redirect
  3
+# key: recai
3 4
 # --
4 5
 redirect_to :controller => "${items}", :action => "${show}", :id => ${@item}
1  rej
... ...
@@ -1,4 +1,5 @@
1 1
 #name : reject { |e| .. }
2 2
 #group : Enumerables
  3
+# key: rej
3 4
 # --
4 5
 reject { |${1:e}| $0 }
1  reject
... ...
@@ -1,4 +1,5 @@
1 1
 #name : reject { |...| ... }
2 2
 #group : Enumerables
  3
+# key: reject
3 4
 # --
4 5
 reject { |${1:element}| $0 }
1  rep
... ...
@@ -1,3 +1,4 @@
1 1
 #name : results_report(..) { .. }
  2
+# key: rep
2 3
 # --
3 4
 results.report("${1:name}:") { TESTS.times { $0 } }
1  req
... ...
@@ -1,3 +1,4 @@
1 1
 #name : require "..."
  2
+# key: req
2 3
 # --
3 4
 require "$0"
1  res
@@ -2,6 +2,7 @@
2 2
 #name : respond_to do |format| ..
3 3
 #group : ActionController
4 4
 #contributor : Bjørn Arild Mæland [github.com/Chrononaut]
  5
+# key: res
5 6
 # --
6 7
 respond_to do |format|
7 8
   format.${1:html} $0
1  reve
... ...
@@ -1,3 +1,4 @@
1 1
 # This was cloned from a TextMate bundle for yasnippet.
  2
+# key: reve
2 3
 # --
3 4
 reverse_each { |${1:e}| $0 }
1  rf
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render :file => " ... "
2 2
 #group: Rails render
  3
+# key: rf
3 4
 # --
4 5
 render :file => "${filepath}"
1  rfu
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render :file => " ... ", :use_full_path =>  ... 
2 2
 #group: Rails render
  3
+# key: rfu
3 4
 # --
4 5
 render :file => "${filepath}", :use_full_path => ${false}
1  ri
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render :inline => " ... "
2 2
 #group: Rails render
  3
+# key: ri
3 4
 # --
4 5
 render :inline => "${<%= 'hello' %>}"
1  ril
... ...
@@ -1,4 +1,5 @@
1 1
 #name : render :inline => " ... ", :locals => {  ...  => " ... " }
2 2
 #group: Rails render
  3
+# key: ril
3 4
 # --
4 5
 render :inline => "${<%= 'hello' %>}", :locals => { ${name} => "${value}" }
1  rit