]> code.delx.au - gnu-emacs-elpa/blob - packages/yasnippet/extras/imported/ruby-mode/.yas-setup.el
Update packages/darkroom by merging its external subtree
[gnu-emacs-elpa] / packages / yasnippet / extras / imported / ruby-mode / .yas-setup.el
1 ;;; .yas-setup.el --- Setup for ruby-mode -*- coding: utf-8 -*-
2
3 ;; Copyright (C) 2013 Free Software Foundation, Inc.
4
5 ;; This program is free software; you can redistribute it and/or modify
6 ;; it under the terms of the GNU General Public License as published by
7 ;; the Free Software Foundation, either version 3 of the License, or
8 ;; (at your option) any later version.
9
10 ;; This program is distributed in the hope that it will be useful,
11 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ;; GNU General Public License for more details.
14
15 ;; You should have received a copy of the GNU General Public License
16 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 ;;; Code:
19
20 ;;
21 (defvar yas-ruby-snippet-open-paren " "
22 "The open parenthesis used in ruby-mode snippets. Normally blank but could be (")
23 (defvar yas-ruby-snippet-close-paren " "
24 "The close parenthesis used in ruby-mode snippets. Normally blank but could be )")
25 (defvar yas-ruby-shebang-args " -wKU"
26 "Arguments for the ruby shebang line.")
27
28 (defun yas-ruby-infer-class-name ()
29 "Infer the class name from the buffer. Thanks to hitesh <hitesh.jasani@gmail.com>"
30 (if buffer-file-name
31 (let ((fn (capitalize (file-name-nondirectory
32 (file-name-sans-extension
33 (buffer-file-name))))))
34 (cond
35 ((string-match "_" fn) (replace-match "" nil nil fn))
36 (t fn)))
37 "SomeClass"))
38
39 (defun yas-ruby-chomp (x)
40 "Chomp string X, return nil if X became empty"
41 (let ((len (length x))
42 (start 0)
43 (end (1- (length x))))
44 (unless (zerop len)
45 (while (and (< start len)
46 (memq (aref x start)
47 '(? ?\t ?\n)))
48 (setq start (1+ start)))
49 (while (and (> end start)
50 (memq (aref x end)
51 '(? ?\t ?\n)))
52 (setq end (1- end)))
53 (unless (<= end start)
54 (substring x start (1+ end))))))
55
56 (defvar yas-ruby-block-start-regexp "\\(^\\|[\s\t\n^]\\)\\(do\\)[\s\t\n]\\(|.*|\\)?")
57
58 (defun yas-ruby-toggle-single-multi-line-block ()
59 "Toggle \"do .. end\" blocks into \"{ .. }\" blocks back and forth."
60 ;;
61 ;; TODO: Some code to be refactored here.
62 ;;
63 ;; FIXME: correctly detect statements in { .. } block, split-string(";") is no good
64 ;;
65 (interactive)
66 (let* ((do-block-bounds (save-excursion
67 (when (or (save-excursion (beginning-of-line)
68 (looking-at yas-ruby-block-start-regexp))
69 (save-excursion (ruby-beginning-of-block)
70 (looking-at yas-ruby-block-start-regexp)))
71 (cons (match-beginning 1)
72 (progn (goto-char (match-beginning 1))
73 (ruby-end-of-block) (point))))))
74 (brace-block-bounds (condition-case nil
75 (let ((syntax-info (syntax-ppss)))
76 (if (fourth syntax-info)
77 (goto-char (ninth syntax-info)))
78 (while (progn (up-list -1) (not (eq (char-after) ?{))))
79 (cons (point)
80 (progn (forward-sexp) (point))))
81 (error nil)))
82 (block-region)
83 (statements))
84 (if (and do-block-bounds brace-block-bounds)
85 (if (< (car do-block-bounds) (car brace-block-bounds))
86 (setq do-block-bounds nil)
87 (setq brace-block-bounds nil)))
88 (cond (do-block-bounds
89 (goto-char (car do-block-bounds))
90 (setq block-region (buffer-substring-no-properties (+ 2 (car do-block-bounds)) (cdr do-block-bounds)))
91 (delete-region (car do-block-bounds) (+ 3 (cdr do-block-bounds)))
92 (insert "{")
93 (when (string-match "\\(|.*|\\).*" block-region)
94 (insert " " (match-string 1 block-region))
95 (setq block-region (substring block-region (match-end 1))))
96 (setq statements (remove nil (mapcar #'yas-ruby-chomp
97 (split-string block-region "\n"))))
98 (mapc #'(lambda (string)
99 (insert " " string)
100 (if (member (aref string (1- (length string))) '(?;
101 ?|))
102 (insert " ")
103 (insert ";")))
104 statements)
105 (when statements (delete-backward-char 1))
106 (save-excursion
107 (insert " }")))
108 (brace-block-bounds
109 ;; (message "found a brace block")
110 (goto-char (car brace-block-bounds))
111 (setq block-region (buffer-substring (1+ (car brace-block-bounds)) (1- (cdr brace-block-bounds))))
112 (delete-region (car brace-block-bounds) (cdr brace-block-bounds))
113 (insert "do")
114 (when (string-match "\\(|.*|\\).*" block-region)
115 (insert " " (match-string 1 block-region))
116 (setq block-region (substring block-region (match-end 1))))
117 (setq statements (remove nil (mapcar #'yas-ruby-chomp
118 (split-string block-region ";"))))
119 (mapc #'(lambda (string)
120 (insert "\n" string)
121 (indent-according-to-mode))
122 statements)
123 (unless statements (insert "\n") (indent-according-to-mode))
124 (save-excursion
125 (insert "\nend")
126 (indent-according-to-mode)))
127 (t
128 (message "No enclosing block found.")))))
129
130 (defvar yas-ruby-require-regexps
131 '(("abbrev" . ("abbrev"))
132 ("base64" . ("Base64"))
133 ("benchmark" . ("Benchmark"))
134 ("bigdecimal" . ("BigDecimal"))
135 ("bigdecimal/math" . ("BigMath"))
136 ("cgi" . ("CGI"))
137 ("complex" . ("Complex"))
138 ("csv" . ("CSV"))
139 ("curses" . ("Curses"))
140 ("date" . ("Date(?:Time)?"))
141 ("dbm" . ("DBM"))
142 ("delegate" . ("DelegateClass" "Delegator" "SimpleDelegator "))
143 ("digest" . ("MD5" "SHA1"))
144 ("dl" . ("DL"))
145 ("enumerator" . ("(?:enum|each)_(?:cons|slice)" "enum_(?:for|with_index)" "to_enum "))
146 ("erb" . ("ERB"))
147 ("etc" . ("Etc"))
148 ("fcntl" . ("Fcntl"))
149 ("fileutils" . ("FileUtils"))
150 ("find" . ("Find(?:\.|::)find"))
151 ("forwardable" . ("(?:Single)?Forwardable"))
152 ("gdbm" . ("GDBM"))
153 ("generator" . ("Generator" "SyncEnumerator"))
154 ("getoptlong" . ("GetoptLong"))
155 ("gserver" . ("GServer"))
156 ("iconv" . ("Iconv"))
157 ("ipaddr" . ("IpAddr"))
158 ("logger" . ("Logger"))
159 ("matrix" . ("Matrix" "Vector"))
160 ("monitor" . ("Monitor(?:Mixin)?"))
161 ("net/ftp" . ("Net::FTP"))
162 ("net/http" . ("Net::HTTP"))
163 ("net/imap" . ("Net::IMAP"))
164 ("net/pop" . ("Net::(?:APOP|POP3)"))
165 ("net/smtp" . ("Net::SMTP"))
166 ("net/telnet" . ("Net::Telnet"))
167 ("nkf" . ("NKF"))
168 ("observer" . ("Observable"))
169 ("open3" . ("Open3"))
170 ("optparse" . ("OptionParser"))
171 ("ostruct" . ("OpenStruct"))
172 ("pathname" . ("Pathname"))
173 ("ping" . ("Ping"))
174 ("pp" . ("pp"))
175 ("pstore" . ("PStore"))
176 ("rational" . ("Rational"))
177 ("rdoc/usage" . ("RDoc(?:\.|::)usage"))
178 ("rdoc/markup/simple_markup" . ("SM::SimpleMarkup"))
179 ("rdoc/markup/simple_markup/to_html" . ("SM::SimpleMarkup"))
180 ("rdoc/usage" . ("RDoc(?:\.|::)usage"))
181 ("resolv" . ("Resolv"))
182 ("rexml/document" . ("REXML"))
183 ("rinda/tuplespace" . ("Rinda::TupleSpace(?:Proxy)?"))
184 ("rinda/ring" . ("Rinda::Ring(?:Finger|Server)?"))
185 ("rss" . ("RSS"))
186 ("scanf" . ("scanf"))
187 ("sdbm" . ("SDBM"))
188 ("set" . ("(?:Sorted)?Set"))
189 ("singleton" . ("Singleton"))
190 ("soap" . ("SOAP"))
191 ("socket" . (" (?:TCP|UNIX)(?:Socket|Server)" "(?:UDP)?Socket"))
192 ("stringio" . ("StringIO"))
193 ("strscan" . ("StringScanner"))
194 ("syslog" . ("Syslog"))
195 ("tempfile" . ("Tempfile"))
196 ("test/unit" . ("Test::Unit"))
197 ("thread" . (" ConditionVariable" "Mutex" "(?:Sized)?Queue "))
198 ("time" . ("Time(?:\.|::)parse"))
199 ("timeout" . ("Timeout(?:\.|::)timeout"))
200 ("tk" . ("TK"))
201 ("tmpdir" . ("Dir(?:\.|::)tmpdir"))
202 ("tracer" . ("Tracer"))
203 ("tsort" . ("TSort"))
204 ("uri" . ("URI"))
205 ("weakref" . ("WeakRef"))
206 ("webrick" . ("WEBrick"))
207 ("Win32API" . ("Win32(?:API)?"))
208 ("win32ole" . ("WIN32OLE"))
209 ("wsdl" . ("WSDL"))
210 ("xmlrpc" . ("XMLRPC"))
211 ("yaml" . ("YAML"))
212 ("zlib" . ("Zlib"))))
213
214 (defun yas-ruby-require (package)
215 (save-excursion
216 (goto-char (point-min))
217 (unless (search-forward-regexp (format "^[\s\t]*require[( ][ ]*\"%s\"[ )]*$"
218 package) nil t)
219 (unless (search-forward-regexp "^[\s\t]*require.*\n" nil t)
220 (search-forward-regexp "^[\s\t]*[^#]" nil t)
221 (goto-char (line-beginning-position)))
222 (insert "require \"" package "\"\n"))))
223
224 (defun yas-ruby-pipe-through-xmpfilter ()
225 (interactive)
226 (let ((start (or (and mark-active
227 (region-beginning))
228 (point-min)))
229 (end (or (and mark-active
230 (region-end))
231 (point-max)))
232 (orig (point))
233 retval
234 (orig-line (count-screen-lines (window-start) (line-beginning-position))))
235
236 (unless (zerop (shell-command-on-region start end "xmpfilter" (get-buffer-create "*xmpfilter*") t (get-buffer-create "*xmpfilter errors*") t))
237 (undo)
238 )
239 (goto-char (min (point-max) orig))
240 (recenter orig-line)
241 retval))
242
243 (put (intern "ruby-thing") 'bounds-of-thing-at-point 'yas-ri-ruby-thing-bounds)
244 (defun yas-ri-ruby-thing-bounds ()
245 (let ((start (point))
246 (end (point)))
247 (save-excursion
248 (while (not (and (zerop (skip-syntax-forward "\w\_"))
249 (zerop (skip-chars-forward "#:"))))
250 (setq end (point)))
251 (while (not (and (zerop (skip-syntax-backward "\w\_"))
252 (zerop (skip-chars-backward "#:"))))
253 (setq start (point))))
254 (unless (= start end)
255 (cons start end))))
256
257 (defvar yas-ri-history nil
258 "History of yas-ri queries.")
259 (defvar yas-ri-executable "ri")
260 (require 'ansi-color)
261 (defun yas-ri (query)
262 (interactive (list (read-from-minibuffer "Ri query: "
263 (thing-at-point 'ruby-thing)
264 nil
265 nil
266 'ri-history)))
267 (with-current-buffer (get-buffer-create "*Ri*")
268 (setq buffer-read-only nil)
269 (erase-buffer)
270 (setq default-directory "~")
271 (setq buffer-read-only nil)
272 (shell-command (concat yas-ri-executable " -f ansi " query) "*Ri*")
273 (ansi-color-apply-on-region (point-min) (point-max))
274 (yas-ri-mode)
275 (display-buffer (current-buffer)))
276 t)
277
278 (defun yas-ri-mode ()
279 "Mode for viewing Ruby documentation."
280 (buffer-disable-undo)
281 (kill-all-local-variables)
282 (local-set-key (kbd "q") 'quit-window)
283 (local-set-key (kbd "RET") 'yas-ri)
284 (setq mode-name "ri")
285 (setq major-mode 'yas-ri-mode)
286 (setq buffer-read-only t)
287 (run-hooks 'yas-ri-mode-hook))
288
289 ;; conditions
290 ;;
291 (yas-define-condition-cache yas-ruby-in-interpolated-string-p (member (fourth (syntax-ppss)) (list ?\" ?\`)))
292 (yas-define-condition-cache yas-ruby-in-comment-p (fifth (syntax-ppss)))
293 (yas-define-condition-cache yas-ruby-in-string-p (fourth (syntax-ppss)))
294 (yas-define-condition-cache yas-ruby-end-is-block-end-p
295 (save-excursion
296 (ruby-backward-sexp)
297 (not (eq (point) (point-min)))))
298
299 (provide 'yas-ruby)
300
301 ;; My work in progress substitutions
302 ;;
303 ;; Substitutions for: content
304 ;;
305 ;; ${1/.+/(/} =yyas> ${1:$(and (yas-text) "(")}
306 ;; ${1/.+/)/} =yyas> ${1:$(and (yas-text) ")")}
307 ;; ${2/.+/ => /} =yyas> ${2:$(and (yas-text) " => ")}
308 ;; ${1:${TM_FILENAME/\.\w+//} =yyas> ${1:$(and buffer-file-name (file-name-sans-extension buffer-file-name))}
309 ;; ${1/(^.*?\S.*)|.*/(?1:\()/} =yyas> ${1:$(and (string-match "[^\s\t]" yas-text) "(" )}
310 ;; ${1/(^.*?\S.*)|.*/(?1:\))/} =yyas> ${1:$(and (string-match "[^\s\t]" yas-text) ")" )}
311 ;; ${2/(^.*?\S.*)|.*/(?1:\()/} =yyas> ${2:$(and (string-match "[^\s\t]" yas-text) "(" )}
312 ;; ${2/(^.*?\S.*)|.*/(?1:\))/} =yyas> ${2:$(and (string-match "[^\s\t]" yas-text) ")" )}
313 ;; ${3/(^.*?\S.*)|.*/(?1:\()/} =yyas> ${3:$(and (string-match "[^\s\t]" yas-text) "(" )}
314 ;; ${3/(^.*?\S.*)|.*/(?1:\))/} =yyas> ${3:$(and (string-match "[^\s\t]" yas-text) ")" )}
315 ;; ${2/^\s*$|(.*\S.*)/(?1: )/} =yyas> ${2:$(and (string-match "[^\s\t]" yas-text) " " )}
316 ;; ${3/^\s*$|(.*\S.*)/(?1: )/} =yyas> ${3:$(and (string-match "[^\s\t]" yas-text) " " )}
317 ;; ${3/(^[rwab+]+$)|.*/(?1:, ")/} =yyas> ${3:$(and (string-match "^[rwab+]+$" yas-text) ", \\"" )}
318 ;; ${3/(^[rwab+]+$)|.*/(?1:")/} =yyas> ${3:$(and (string-match "^[rwab+]+$" yas-text) "\\"" )}
319 ;; ${3/^\s*$|(.*\S.*)/(?1:, )/} =yyas> ${3:$(and (string-match "[^\s\t]" (yas-text) ", ")}
320 ;; ${TM_SELECTED_TEXT/([\t ]*).*/$1/m} =yyas>
321 ;; ${TM_SELECTED_TEXT/(\A.*)|(.+)|\n\z/(?1:$0:(?2:\t$0))/g} =yyas> `yas-selected-text`
322 ;; (yas-multi-line-unknown BF487539-8085-4FF4-8601-1AD20FABAEDC) =yyas> `(yas-ruby-infer-class-name)`
323 ;; (yas-multi-line-unknown 2B73EC5F-06D2-460C-A14F-6FA05AFCF0CC) =yyas> `(yas-ruby-infer-class-name)`
324 ;;
325 ;; ${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g} =yyas> `(yas-ruby-infer-class-name)`
326 ;;
327 ;; ${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/} =yyas> ${1:$(and (yas-text) "|")}
328 ;; ${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1: |)/} =yyas> ${1:$(and (yas-text) " |")}
329 ;; ${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/} =yyas> ${1:$(and (yas-text) "| ")}
330 ;;
331 ;; ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/} =yyas> ${1:$(and (yas-text) "|")}
332 ;; ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/} =yyas> ${1:$(and (yas-text) "| ")}
333 ;; ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/} =yyas> ${2:$(and (yas-text) "|")}
334 ;; ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/} =yyas> ${2:$(and (yas-text) "| ")}
335 ;;
336 ;; ${1/([\w&&[^_]]+)|./\u$1/g} =yyas> ${1:$(replace-regexp-in-string "[_/]" "" (capitalize yas-text))}
337 ;;
338 ;; 7990EE60-C850-4779-A8C0-7FD2C853B99B =yyas> (yas-ruby-toggle-single-multi-line-block)
339 ;; 7E084412-80E6-4B70-8092-C03D1ECE4CD2 =yyas> (yas-ruby-require "eac")(yas-expand-uuid 'ruby-mode "FDD73070-6D32-4301-A86A-C55B77C3D8ED")
340 ;; FBFC214F-B019-4967-95D2-028F374A3221 =yyas> (yas-ruby-pipe-through-xmpfilter)
341 ;; 63F3B3B7-CBE2-426B-B551-657733F3868B =yyas> (call-interactively (if (featurep 'yari) 'yari 'yas-ri))
342
343 ;;
344 ;; `[[ $TM_LINE_INDEX != 0 ]] && echo; echo` =yyas> `(concat (if (eq 0 current-line) "\n" "") "\n")`
345 ;; `snippet_paren.rb` =yyas> `yas-ruby-snippet-open-paren`
346 ;; `snippet_paren.rb end` =yyas> `yas-ruby-snippet-close-paren`
347 ;; ${TM_RUBY_SWITCHES: -wKU} =yyas> `yas-ruby-shebang-args`
348 ;;
349 ;; Substitutions for: condition
350 ;;
351 ;; 7990EE60-C850-4779-A8C0-7FD2C853B99B =yyas> 'force-in-comment
352 ;; FBFC214F-B019-4967-95D2-028F374A3221 =yyas> 'force-in-comment
353 ;; 88BC3896-DC39-4307-A271-21D33340F15A =yyas> 'force-in-comment
354 ;; 0F940CBC-2173-49FF-B6FD-98A62863F8F2 =yyas> 'force-in-comment
355 ;; 451A0596-1F72-4AFB-AF2F-45900FABB0F7 =yyas> (not (yas-ruby-end-is-block-end-p))
356 ;; (string.quoted.double.ruby|string.interpolated.ruby) - string source =yyas> (and (yas-ruby-in-interpolated-string-p) 'force-in-comment)
357 ;; text.html.ruby, text.html source.ruby =yyas> (yas-unimplemented)
358 ;; text.html, source.yaml, meta.erb =yyas> (yas-unimplemented)
359 ;; keyword.control.start-block.ruby, meta.syntax.ruby.start-block =yyas>
360 ;;
361 ;; Substitutions for: binding
362 ;;
363 ;; # as in Commands/New Method.yasnippet
364 ;; $ =yyas> C-c M-m
365 ;; ^W =yyas> C-c M-w
366 ;; # =yyas> #
367 ;; ^{ =yyas> C-c M-{
368 ;; @R =yyas> C-c M-R
369 ;; @r =yyas> C-c M-r
370 ;; ^R =yyas> C-c M-S-r
371 ;; @i =yyas> s-i
372 ;; @b =yyas> s-b
373 ;; ^@E =yyas> C-c M-e
374 ;; ^: =yyas> C-c M-:
375 ;; ^> =yyas> C-c M->
376 ;; ^h =yyas> C-c M-h
377 ;;
378 ;;
379 ;; # as in Commands/Enclose in + (RDoc comments).yasnippet
380 ;; @k =yyas> (yas-unknown)
381 ;;
382 ;; # as in Commands/Check Ruby Syntax.yasnippet
383 ;; ^V =yyas> (yas-unknown)
384 ;;
385 ;; # as in Commands/Omit from RDoc.yasnippet
386 ;; ^@O =yyas> (yas-unknown)
387 ;;
388 ;; # as in Commands/Enclose in (RDoc comments).yasnippet
389 ;; @b =yyas> (yas-unknown)
390 ;;
391 ;; # as in Snippets/hash pointer.yasnippet
392 ;; ^l =yyas> (yas-unknown)
393 ;;
394 ;; # as in Commands/Make Destructive Call.yasnippet
395 ;; ^! =yyas> (yas-unknown)
396 ;;
397 ;; # as in Commands/Toggle Quote Style.yasnippet
398 ;; ^" =yyas> (yas-unknown)
399 ;;
400 ;; # as in Commands/Open Require.yasnippet
401 ;; @D =yyas> (yas-unknown)
402 ;;
403 ;; # as in Commands/Execute Line with Ruby.yasnippet
404 ;; ^E =yyas> (yas-unknown)
405 ;;
406 ;; # as in Commands/Completion Ruby (rcodetools).yasnippet
407 ;; ~\e =yyas> (yas-unknown)
408 ;;
409 ;; # as in Macros/Delete forwardbackward.yasnippet
410 ;; \7f =yyas> (yas-unknown)
411 ;;
412 ;; --**--
413 ;; Automatically generated code, do not edit this part
414 ;;
415 ;; Translated menu
416 ;;
417 (yas-define-menu 'ruby-mode
418 '(;; Ignoring Run
419 (yas-ignore-item "35222962-C50D-4D58-A6AE-71E7AD980BE4")
420 ;; Ignoring Run Focused Unit Test
421 (yas-ignore-item "5289EE40-86B8-11D9-A8D4-000A95E13C98")
422 ;; Ignoring Run Rake Task
423 (yas-ignore-item "569C9822-8C41-4907-94C7-1A8A0031B66D")
424
425 ;; Documentation for Word / Selection
426 (yas-item "63F3B3B7-CBE2-426B-B551-657733F3868B")
427 (yas-submenu "RDoc"
428 (;; Ignoring Show for Current File / Project
429 (yas-ignore-item "1AD6A138-2E89-4D6A-AB3F-416BF9CE968D")
430
431 (yas-submenu "Format"
432 (;; Ignoring Bold
433 (yas-ignore-item "931DD73E-615E-476E-9B0D-8341023AE730")
434 ;; Ignoring Italic
435 (yas-ignore-item "DAA69A0C-FC1E-4509-9931-DFFB38B4D6AE")
436 ;; Ignoring Typewriter
437 (yas-ignore-item "2DDB6FE0-6111-4C40-A149-8E67E76F8272")))
438
439 ;; New Block
440 (yas-item "05984208-D559-4C04-A69C-2019361A985A")
441 ;; Ignoring Omit
442 (yas-ignore-item "BF4CA9F1-51CD-48D4-8357-852234F59046")
443
444 ;; :yields:
445 (yas-item "ED6368FB-A11D-4622-9F42-7879481094F1")))
446 (yas-separator)
447 (yas-submenu "Rake"
448 (;; namespace :name ... end
449 (yas-item "A3D89AAA-9156-4077-A026-37BB7358C3BA")
450 ;; namespace :name ... task :default ... end
451 (yas-item "2031FC41-CBD3-41CC-B9A9-7F068E607A05")
452 ;; desc ...
453 (yas-item "F686E1AD-B03D-45A6-BD51-6E3FD1298FE0")
454 ;; task :name ... end
455 (yas-item "CB81DA55-F3BC-4BFB-B0C5-29F0EE6F8081")
456 ;; desc ... task :name ... end
457 (yas-item "FE9A8EDA-C243-4068-8F38-A615B82D08C9")
458 ;; Ignoring Rake/Sake task using file path
459 (yas-ignore-item "E07FF68B-C87D-4332-8477-D026929FDADA")))
460 (yas-separator)
461 ;; Ignoring Open Require
462 (yas-ignore-item "8646378E-91F5-4771-AC7C-43FC49A93576")
463 ;; Ignoring Validate Syntax
464 (yas-ignore-item "EE5F19BA-6C02-11D9-92BA-0011242E4184")
465
466 ;; Ignoring Execute Line / Selection as Ruby
467 (yas-ignore-item "EE5F1FB2-6C02-11D9-92BA-0011242E4184")
468 ;; Execute and Update ‘# =>’ Markers
469 (yas-item "FBFC214F-B019-4967-95D2-028F374A3221")
470 ;; Add ‘# =>’ Marker
471 (yas-item "88BC3896-DC39-4307-A271-21D33340F15A")
472 (yas-separator)
473 ;; Ignoring Insert Missing Requires
474 (yas-ignore-item "9FB64639-F776-499B-BA6F-BB45F86F80FD")
475 ;; Ignoring Add ! to Method in Line / Selection
476 (yas-ignore-item "7F79BC8D-8A4F-4570-973B-05DFEC25747F")
477 ;; Ignoring Toggle String / Symbol
478 (yas-ignore-item "B297E4B8-A8FF-49CE-B9C4-6D4911724D43")
479 ;; Insert ERb’s <% .. %> or <%= .. %>
480 (yas-item "FDFABCB9-DF58-4469-AE11-5407A4FF4D70")
481 (yas-separator)
482 (yas-submenu "Declarations"
483 (;; begin … rescue … end
484 (yas-item "0F940CBC-2173-49FF-B6FD-98A62863F8F2")
485 ;; case … end
486 (yas-item "667083EE-62C3-11D9-B8CF-000D93589AF6")
487 ;; when …
488 (yas-item "48D8E498-C9A5-4B1B-9A18-71A5860276FB")
489 ;; if … end
490 (yas-item "6670835F-62C3-11D9-B8CF-000D93589AF6")
491 ;; if … else … end
492 (yas-item "667082E6-62C3-11D9-B8CF-000D93589AF6")
493 ;; elsif ...
494 (yas-item "CD1609FA-47DA-4EE4-9C5B-5C56D953F5B1")
495 ;; unless … end
496 (yas-item "F53E098D-D08E-4CE2-990A-B0BD70E60614")
497 ;; while ... end
498 (yas-item "D121FC61-96A4-4B8F-8709-280EDA876FF3")
499 ;; until ... end
500 (yas-item "488B387C-50C0-4B2D-9260-5A7E7EAF9B42")
501 (yas-separator)
502 (yas-submenu "Classes and Modules"
503 (;; class .. end
504 (yas-item "BF487539-8085-4FF4-8601-1AD20FABAEDC")
505 ;; class .. initialize .. end
506 (yas-item "83EED068-8C1C-4BAF-9893-902DC00616AB")
507 ;; class .. < ParentClass .. initialize .. end
508 (yas-item "0CCBE04E-F4E2-4E55-9506-7DE67ACF8388")
509 ;; ClassName = Struct .. do .. end
510 (yas-item "05DFF82C-5A29-4EBD-93FE-C165FFFB5EA8")
511 ;; class BlankSlate .. initialize .. end
512 (yas-item "E98FB8F9-7302-431D-8BF2-275A68A6126C")
513 ;; Ignoring class .. < DelegateClass .. initialize .. end
514 (yas-ignore-item "121B334B-2AA6-4E9A-A8B8-BF93B627982B")
515 ;; class .. < DelegateClass .. initialize .. end
516 (yas-item "AFE1D078-EA16-45F5-AD8A-FAC1B523D861")
517 ;; class << self .. end
518 (yas-item "C7AAAE45-487A-4B61-8962-D47675AAC05F")
519 (yas-separator)
520 ;; module .. end
521 (yas-item "2B73EC5F-06D2-460C-A14F-6FA05AFCF0CC")
522 ;; module .. module_function .. end
523 (yas-item "0E85EC81-2FAB-4648-B590-119CC1BB6E41")
524 ;; module .. ClassMethods .. end
525 (yas-item "A71A18CF-2D71-4BFF-AA0C-D9B8C59BC4EB")))
526 (yas-submenu "Methods"
527 (;; Ignoring New Method
528 (yas-ignore-item "0275EF39-9357-408F-AF20-79E415CA9504")
529
530 ;; attr_reader ..
531 (yas-item "A150C2D8-25B3-4339-BC92-8A0160A70486")
532 ;; attr_writer ..
533 (yas-item "3D383096-A03F-4EF8-9060-3C727045AB34")
534 ;; attr_accessor ..
535 (yas-item "D7A7D3C9-1714-4C50-8CC0-D83A03883E8F")
536 (yas-separator)
537 ;; include Enumerable ..
538 (yas-item "AAD5D511-6BE7-41DA-8F2B-1593A48FBB08")
539 ;; include Comparable ..
540 (yas-item "6C9D6B3D-D8E9-4606-9534-577C8D21FFF6")
541 (yas-separator)
542 ;; Ignoring extend Forwardable
543 (yas-ignore-item "58FDEA60-10AF-4C49-AA09-29B77030DB25")
544 ;; extend Forwardable
545 (yas-item "7F46C90A-595B-4B83-A4F7-058F63CE4218")
546 (yas-separator)
547 ;; def … end
548 (yas-item "4E9A7A73-875C-11D9-897C-000393CBCE2E")
549 ;; def self .. end
550 (yas-item "7C6E88FA-CA0E-4110-8C75-A94E54286A75")
551 ;; def method_missing .. end
552 (yas-item "87D5F8AD-8DA6-4AED-A0D8-B51CAC980445")
553 ;; def_delegator ..
554 (yas-item "C44ED391-614F-4BA2-BB0F-87668EEA9954")
555 ;; def_delegators ..
556 (yas-item "4A6EFD6B-88E2-4822-AD48-03460EDBC796")
557 (yas-separator)
558 ;; alias_method ..
559 (yas-item "988C8AEF-FC71-4455-9C4F-9338C05685A4")))
560 ;; __END__
561 (yas-item "451A0596-1F72-4AFB-AF2F-45900FABB0F7")
562 (yas-separator)
563 ;; #!/usr/bin/env ruby -wKU
564 (yas-item "A05CBDD6-845D-45EB-94FB-F8787F5456BE")
565 ;; require ".."
566 (yas-item "97DE939B-D243-4D5C-B953-1C9090912E7C")
567 ;; application { .. }
568 (yas-item "E16D24D2-CC7E-4786-BE0B-1725FC865D78")
569 ;; usage_if()
570 (yas-item "21C0D711-F32A-4665-AA0D-B136F9DD3945")
571 ;; usage_unless()
572 (yas-item "49D69DEC-6991-49F4-8D9B-BA60BFDD3D17")))
573 (yas-submenu "Iterators"
574 ((yas-submenu "Arrays"
575 (;; Array.new(10) { |i| .. }
576 (yas-item "DAE6A754-D906-4763-B816-CE67125CEF08")
577 (yas-separator)
578 ;; delete_if { |e| .. }
579 (yas-item "263C94DC-63CF-4BA3-9692-C5582CA8F1AB")
580 ;; fill(range) { |i| .. }
581 (yas-item "6021BBDC-4AAD-447B-A0C2-A4BB31721558")
582 ;; flatten_once()
583 (yas-item "3DDB99C4-486D-4C11-A217-5680FDD8EC19")
584 ;; zip(enums) { |row| .. }
585 (yas-item "FD010022-E0E7-44DB-827F-33F7D9310DA2")))
586 (yas-submenu "Counting"
587 (;; downto(0) { |n| .. }
588 (yas-item "4991BB86-736E-4758-B9B2-E4FA90B9368F")
589 ;; step(2) { |e| .. }
590 (yas-item "36853A11-0307-4AE7-B835-7CE6358717A5")
591 ;; times { |n| .. }
592 (yas-item "206D54AF-E67A-4DF0-B7F4-3D42FEB81685")
593 ;; upto(1.0/0.0) { |n| .. }
594 (yas-item "51954118-81D7-42B6-9A10-BE23D8B9FFE2")
595 (yas-separator)
596 ;; loop { .. }
597 (yas-item "567E3D18-BF2B-4379-8927-2777EC9F495E")))
598 (yas-submenu "Each Element"
599 (;; each { |e| .. }
600 (yas-item "ECBA4CA0-275F-460E-85BE-E82FEA2E2B26")
601 ;; each_byte { |byte| .. }
602 (yas-item "338EC03D-3FF4-4435-94E8-1CEF20CEC75D")
603 ;; each_char { |chr| .. }
604 (yas-item "7E084412-80E6-4B70-8092-C03D1ECE4CD2")
605 ;; each_char { |chr| .. }
606 (yas-item "FDD73070-6D32-4301-A86A-C55B77C3D8ED")
607 ;; Ignoring each_cons(..) { |group| .. }
608 (yas-ignore-item "EC73D5CC-5F05-46B9-A6F4-82037E4A38C9")
609 ;; each_cons(..) { |group| .. }
610 (yas-item "3C04589C-5127-478E-97B3-CA7DD2EA7ECD")
611 ;; each_index { |i| .. }
612 (yas-item "689120C9-AB40-4081-8268-9362E00FA4A0")
613 ;; each_key { |key| .. }
614 (yas-item "E54F7077-3C33-4B53-A4F7-21E16132D3AD")
615 ;; each_line { |line| .. }
616 (yas-item "02913388-EE8E-4C55-AC94-94F3D751F47E")
617 ;; each_pair { |name, val| .. }
618 (yas-item "7A3CECED-452B-438E-A5C6-95B6BDC43243")
619 ;; Ignoring each_slice(..) { |group| .. }
620 (yas-ignore-item "825B721D-4367-4DF7-98C0-F005695DF9E3")
621 ;; each_slice(..) { |group| .. }
622 (yas-item "CD748479-D2A4-4AB5-95BD-4C89512BA210")
623 ;; each_value { |val| .. }
624 (yas-item "844DBD70-BC23-4FBF-9C18-F4A610239DF2")
625 ;; each_with_index { |e, i| .. }
626 (yas-item "1DD13CF5-39C0-4F10-B655-56DACEBC7F94")
627 ;; reverse_each { |e| .. }
628 (yas-item "F3C5F719-EF03-4FF7-A777-4A8402FE3B6B")
629 (yas-separator)
630 ;; inject(init) { |mem, var| .. }
631 (yas-item "B563E0D7-513D-49B4-9733-1B04A6F25A74")
632 (yas-separator)
633 ;; map { |e| .. }
634 (yas-item "5A3754FC-43A3-462B-AB42-E3E951872E6F")
635 ;; Ignoring map_with_index { |e, i| .. }
636 (yas-ignore-item "BFB65D1C-62F1-485D-8A67-3E5A2E55107C")
637 ;; map_with_index { |e, i| .. }
638 (yas-item "BD4CFD7B-1AC0-4569-9BDA-FD491F41F4E6")))
639 (yas-submenu "Files"
640 (;; Dir.glob("..") { |file| .. }
641 (yas-item "332AA973-AA71-48CB-AEE9-1D71E11019AC")
642 ;; File.foreach ("..") { |line| .. }
643 (yas-item "8F594E5E-6F46-4E98-B5FB-1C8F3BA9828F")
644 ;; open("path/or/url", "w") { |io| .. }
645 (yas-item "418F1817-255F-430A-B09A-222964ED66A7")
646 ;; unix_filter { .. }
647 (yas-item "8CEF9711-88D5-4202-AFB9-29EF4EFD25C1")
648 (yas-separator)
649 ;; option_parse { .. }
650 (yas-item "C3C48948-4F49-484E-A8DE-DEB44723099E")
651 ;; option(..)
652 (yas-item "209D5D73-7A77-4931-A158-3FB6D5B48A88")))
653 (yas-submenu "Ordering"
654 (;; sort { |a, b| .. }
655 (yas-item "9E0B4D4B-2956-4B3A-800A-3D8CE54E66BF")
656 ;; sort_by { |e| .. }
657 (yas-item "BA9440C9-36C3-4031-BB61-67B581D5B179")
658 (yas-separator)
659 ;; randomize()
660 (yas-item "B0CE57EC-FB2E-4482-8CCE-448DC2588715")))
661 (yas-submenu "Searching and Selection"
662 (;; all? { |e| .. }
663 (yas-item "07D1F987-7CDB-4EAD-B64A-27A93051700E")
664 ;; any? { |e| .. }
665 (yas-item "A3B9B76B-2BC5-425C-AB24-9FAAFC375798")
666 ;; classify { |e| .. }
667 (yas-item "5DA9E1E8-2C54-420A-9B84-B040A1AF2B9E")
668 ;; collect { |e| .. }
669 (yas-item "669A86AD-936F-4EDA-8E4E-6863804072DA")
670 ;; detect { |e| .. }
671 (yas-item "6C6B9849-9631-49FF-A9F9-F0E94A1512C5")
672 ;; fetch(name) { |key| .. }
673 (yas-item "1F72122A-35AD-4BA1-AA01-889A10319666")
674 ;; find { |e| .. }
675 (yas-item "E23FE534-8061-4828-98A5-46270B6910B0")
676 ;; find_all { |e| .. }
677 (yas-item "197709C5-8382-4A59-B6D7-31A0CC0F23B7")
678 ;; grep(/pattern/) { |match| .. }
679 (yas-item "9D9E7BA3-8C5D-4532-83EA-326358C2F5BB")
680 ;; max { |a, b| .. }
681 (yas-item "98182B9E-7C61-4824-BE4C-9CD69C816037")
682 ;; min { |a, b| .. }
683 (yas-item "CB03D11A-7204-48D0-92C1-E109034403E7")
684 ;; partition { |e| .. }
685 (yas-item "52B8BF63-F09E-4789-8407-06168A8AE666")
686 ;; reject { |e| .. }
687 (yas-item "B79B9DAB-ABEF-44F6-BF7E-635E7BA11DFD")
688 ;; select { |e| .. }
689 (yas-item "4E409AA4-E7D4-46B7-A4E9-E32F992B33E9")))
690 (yas-submenu "Strings"
691 (;; sub(/../) { |match| .. }
692 (yas-item "8021944C-CEA4-4983-8D1C-78D18D4004A1")
693 ;; gsub(/../) { |match| .. }
694 (yas-item "2514FC26-468C-4D08-A788-494A444C4286")
695 (yas-separator)
696 ;; scan(/../) { |match| .. }
697 (yas-item "66802933-B49F-479B-9DF9-1D898FF1FA90")))))
698 (yas-submenu "Blocks"
699 (;; Toggle ‘do … end’ / ‘{ … }’
700 (yas-item "7990EE60-C850-4779-A8C0-7FD2C853B99B")
701 (yas-separator)
702 ;; Insert { |variable| … }
703 (yas-item "855FC4EF-7B1E-48EE-AD4E-5ECB8ED79D1C")
704 ;; Insert do |variable| … end
705 (yas-item "4B72C5C3-6CA7-41AC-B2F9-51DEA25D469E")
706 (yas-separator)
707 ;; lambda { |args| .. }
708 (yas-item "21E75321-0CF7-45E8-A297-BCC7C0DDDD15")))
709 (yas-submenu "Hashes"
710 (;; Hash.new { |hash, key| hash[key] = .. }
711 (yas-item "E16EE658-1CA0-4950-954B-B962E50B754F")
712 (yas-separator)
713 ;; Hash Pair — :key => "value"
714 (yas-item "840B9C4C-7037-4C3B-9028-EB9DC75EDB3E")
715 ;; Hash Pointer — =>
716 (yas-item "B9E3A6DF-875D-11D9-897C-000393CBCE2E")))
717 (yas-submenu "Tests"
718 (;; class .. < Test::Unit::TestCase .. end
719 (yas-item "31D1F145-33AB-4441-BA11-4D1C46928C4C")
720 ;; def test_ .. end
721 (yas-item "00F66D41-25AF-4597-B67D-E540965A5222")
722 ;; require "tc_.." ..
723 (yas-item "5297FD0C-98B1-4514-BBD1-1516810BECA6")
724 (yas-separator)
725 ;; assert(..)
726 (yas-item "B32C147D-44A6-478A-9D5D-189D7831E9A7")
727 ;; assert_equal(..)
728 (yas-item "43A61A22-6BEE-4997-961C-1CDE739C05FE")
729 ;; assert_not_equal(..)
730 (yas-item "A243E96F-DC21-4AA0-B340-13A7674F6AFF")
731 ;; assert_in_delta(..)
732 (yas-item "429D0EF5-580D-4166-8F79-713DE96B77F1")
733 ;; assert_instance_of(..)
734 (yas-item "0E831E03-67E1-4357-8323-C60685C23C4F")
735 ;; assert_kind_of(..)
736 (yas-item "671F05E2-D9CC-485E-BB1B-B13EF20FAC65")
737 ;; assert_nil(..)
738 (yas-item "4C79256C-480A-459C-BDE8-BB0D972811DB")
739 ;; assert_not_nil(..)
740 (yas-item "79FEC3CC-2A40-4611-9A85-ECDB22FE0701")
741 ;; assert_match(..)
742 (yas-item "711ED6C3-0F18-41FB-9A7D-3094BB319A85")
743 ;; assert_no_match(..)
744 (yas-item "A072BB1E-1DD1-45D3-9346-8CA3BA21B364")
745 ;; assert_operator(..)
746 (yas-item "1B925A4D-8EE4-442B-9254-293599F5717F")
747 ;; assert_raise(..) { .. }
748 (yas-item "68B21F6F-5D89-41FA-A19C-F29C2F912B4E")
749 ;; assert_nothing_raised(..) { .. }
750 (yas-item "82F8EEE0-2452-411E-8102-7BFDDBCA2E72")
751 ;; assert_respond_to(..)
752 (yas-item "09A11FDA-49FC-4466-8787-8D1D5D111A89")
753 ;; assert_same(..)
754 (yas-item "29340695-E426-4F77-8CF7-C59360A549F4")
755 ;; assert_not_same(..)
756 (yas-item "F91C25EC-EC76-498B-BFB5-FDA8F57C5875")
757 ;; assert_send(..)
758 (yas-item "7850AD5C-A90D-4E2C-A931-EADFF8D3D9A3")
759 ;; assert_throws(..) { .. }
760 (yas-item "05655BD8-23C6-445F-BFD1-420BF25C3030")
761 ;; assert_nothing_thrown { .. }
762 (yas-item "33639D7A-BD8C-4396-9C44-307B8AC87C9E")
763 ;; flunk(..)
764 (yas-item "DB457094-1AC9-4856-AEFC-43A9576B6775")
765 (yas-separator)
766 ;; Ignoring Benchmark.bmbm do .. end
767 (yas-ignore-item "C649F945-DAB8-4DA2-B73C-2EFF9D7D34F3")
768 ;; Benchmark.bmbm do .. end
769 (yas-item "942F20E2-C40A-44B8-A3F2-99AAC68CB534")
770 ;; results.report(..) { .. }
771 (yas-item "1C60D589-DD46-4109-90CA-6B34AEA2F298")))
772 (yas-submenu "Serialization"
773 (;; Marshal.dump(.., file)
774 (yas-item "0CB48BCA-3F6E-4AE0-85BC-08A1D2508216")
775 ;; Marshal.load(obj)
776 (yas-item "20AAD0BC-075D-4EC0-9057-E3E5E62C4125")
777 (yas-separator)
778 ;; Ignoring PStore.new( .. )
779 (yas-ignore-item "5AE7CFB4-418E-4E00-AD76-06DB755EE876")
780 ;; PStore.new( .. )
781 (yas-item "5B46ECFD-23A4-4F0C-9951-F64C19C72C2B")
782 ;; transaction( .. ) { .. }
783 (yas-item "46BF99AD-E172-4D49-BCF7-072F4730E1D9")
784 (yas-separator)
785 ;; Ignoring YAML.dump(.., file)
786 (yas-ignore-item "9460392B-C036-4A76-A5AE-1191F10E4B1B")
787 ;; YAML.dump(.., file)
788 (yas-item "3BA6762A-BB6B-489E-8006-F30F386AEF48")
789 ;; Ignoring YAML.load(file)
790 (yas-ignore-item "2C07D4E7-D74F-4AE4-82BE-B0BA82247AFA")
791 ;; YAML.load(file)
792 (yas-item "8343ACF4-EEB7-44B5-B835-94826466D4D5")
793 (yas-separator)
794 ;; Ignoring xmlread(..)
795 (yas-ignore-item "F6BF907E-FDF7-4D9B-9E57-BE159561349D")
796 ;; xmlread(..)
797 (yas-item "B904D4AA-D15D-48A4-8EB2-563BAF489332")
798 ;; xpath(..) { .. }
799 (yas-item "CC300D44-6C3F-4F6C-A8AB-86F5A2DC57CF")))
800 (yas-submenu "Idioms"
801 (;; class_from_name()
802 (yas-item "2DBEE50B-3097-4A57-AB48-3586CF392D8B")
803 ;; deep_copy(..)
804 (yas-item "0BA2B2F1-E767-4A03-9791-0AC0183251F1")
805 ;; path_from_here( .. )
806 (yas-item "A4E89D97-D5ED-48BB-B5FF-1BFB79211FCD")
807 ;; singleton_class()
808 (yas-item "B46D35B8-5DEB-4C10-A110-BA1965A2EB9C")
809 ;; Ignoring word_wrap()
810 (yas-ignore-item "97054C4D-E4A3-45B1-9C00-B82DBCB30CAD")))
811 (yas-submenu "File"
812 (;; require File.dirname(__FILE__) + "/.."
813 (yas-item "7C42D878-FD0F-4181-A71A-57A091C0154A")
814 (yas-separator)
815 ;; File.dirname(__FILE__)
816 (yas-item "16920DC1-6FA6-48C8-90C5-C19E2C734303")
817 (yas-separator)
818 ;; File.read(filename)
819 (yas-item "FAFE9F5C-BF9C-4416-8623-2CB8EBC31B3C")
820 ;; File.open(filename, 'r') { |f| f.read }
821 (yas-item "005EB926-4BFE-4BFA-93B2-C9030636289C")))
822 ;; class .. < Test::Unit::TestCase with test_helper
823 (yas-item "228CAB3A-E221-4727-B430-31E94F76C9D3"))
824 '("E5158F94-CC52-4424-A495-14EF9272653F"
825 "EEE6D060-C5A0-400D-A2E0-0835013C5365"
826 "76FCF165-54CB-4213-BC55-BD60B9C6A3EC"
827 "6519CB08-8326-4B77-A251-54722FFBFC1F"
828 "835FAAC6-5431-436C-998B-241F7226B99B"
829 "A83F68A9-F751-4BB4-AE16-56812878C16A"
830 "47D203ED-EB9B-4653-A07B-A897800CEB76"
831 "47D203ED-EB9B-4653-A07B-A897800CEB76"
832 "931DD73E-615E-476E-9B0D-8341023AE730"
833 "2DDB6FE0-6111-4C40-A149-8E67E76F8272"
834 "DAA69A0C-FC1E-4509-9931-DFFB38B4D6AE"
835 "BF4CA9F1-51CD-48D4-8357-852234F59046"
836 "8646378E-91F5-4771-AC7C-43FC49A93576"
837 "E07FF68B-C87D-4332-8477-D026929FDADA"
838 "569C9822-8C41-4907-94C7-1A8A0031B66D"
839 "35222962-C50D-4D58-A6AE-71E7AD980BE4"
840 "835FAAC6-5431-436C-998B-241F7226B99B"
841 "B297E4B8-A8FF-49CE-B9C4-6D4911724D43"
842 "E0E058FC-0DC3-4872-A1C2-0B1A322A0CF5"
843 "B3875596-723C-41EE-9E6F-F84930C3B568"
844 "76FCF165-54CB-4213-BC55-BD60B9C6A3EC"
845 "EE5F19BA-6C02-11D9-92BA-0011242E4184"
846 "EE5F1FB2-6C02-11D9-92BA-0011242E4184"
847 "9FB64639-F776-499B-BA6F-BB45F86F80FD"
848 "7F79BC8D-8A4F-4570-973B-05DFEC25747F"
849 "0275EF39-9357-408F-AF20-79E415CA9504"
850 "5289EE40-86B8-11D9-A8D4-000A95E13C98"
851 "1AD6A138-2E89-4D6A-AB3F-416BF9CE968D"
852 "6519CB08-8326-4B77-A251-54722FFBFC1F"
853 "97054C4D-E4A3-45B1-9C00-B82DBCB30CAD"
854 "E5158F94-CC52-4424-A495-14EF9272653F"
855 "9460392B-C036-4A76-A5AE-1191F10E4B1B"
856 "2C07D4E7-D74F-4AE4-82BE-B0BA82247AFA"
857 "121B334B-2AA6-4E9A-A8B8-BF93B627982B"
858 "EC73D5CC-5F05-46B9-A6F4-82037E4A38C9"
859 "825B721D-4367-4DF7-98C0-F005695DF9E3"
860 "58FDEA60-10AF-4C49-AA09-29B77030DB25"
861 "BFB65D1C-62F1-485D-8A67-3E5A2E55107C"
862 "C649F945-DAB8-4DA2-B73C-2EFF9D7D34F3"
863 "A83F68A9-F751-4BB4-AE16-56812878C16A"
864 "5AE7CFB4-418E-4E00-AD76-06DB755EE876"
865 "F6BF907E-FDF7-4D9B-9E57-BE159561349D"))
866
867 ;; Unknown substitutions
868 ;;
869 ;; Substitutions for: content
870 ;;
871 ;; # as in Snippets/open yield block ({).yasnippet
872 ;; `yas-selected-text` =yyas> (yas-unknown)
873 ;;
874 ;; # as in Snippets/RDoc documentation block.yasnippet
875 ;; `(concat (if (eq 0 current-line) "\n" "") "\n")` =yyas> (yas-unknown)
876 ;;
877 ;; # as in Snippets/flunk(..) (fl).yasnippet
878 ;; `yas-ruby-snippet-open-paren` =yyas> (yas-unknown)
879 ;;
880 ;; # as in Snippets/flunk(..) (fl).yasnippet
881 ;; `yas-ruby-snippet-close-paren` =yyas> (yas-unknown)
882 ;;
883 ;; # as in Snippets/class __ TestUnitTestCase with test_helper.yasnippet
884 ;; (yas-multi-line-unknown 228CAB3A-E221-4727-B430-31E94F76C9D3) =yyas> (yas-unknown)
885 ;;
886 ;; # as in Commands/Completion Ruby (rcodetools).yasnippet
887 ;; 47D203ED-EB9B-4653-A07B-A897800CEB76 =yyas> (yas-unknown)
888 ;;
889 ;; # as in Commands/Enclose in (RDoc comments).yasnippet
890 ;; 931DD73E-615E-476E-9B0D-8341023AE730 =yyas> (yas-unknown)
891 ;;
892 ;; # as in Commands/Enclose in + (RDoc comments).yasnippet
893 ;; 2DDB6FE0-6111-4C40-A149-8E67E76F8272 =yyas> (yas-unknown)
894 ;;
895 ;; # as in Commands/Enclose in _ (RDoc comments).yasnippet
896 ;; DAA69A0C-FC1E-4509-9931-DFFB38B4D6AE =yyas> (yas-unknown)
897 ;;
898 ;; # as in Commands/Omit from RDoc.yasnippet
899 ;; BF4CA9F1-51CD-48D4-8357-852234F59046 =yyas> (yas-unknown)
900 ;;
901 ;; # as in Commands/Open Require.yasnippet
902 ;; 8646378E-91F5-4771-AC7C-43FC49A93576 =yyas> (yas-unknown)
903 ;;
904 ;; # as in Commands/RakeSake task using file path.yasnippet
905 ;; E07FF68B-C87D-4332-8477-D026929FDADA =yyas> (yas-unknown)
906 ;;
907 ;; # as in Commands/Run Rake Task.yasnippet
908 ;; 569C9822-8C41-4907-94C7-1A8A0031B66D =yyas> (yas-unknown)
909 ;;
910 ;; # as in Commands/Run.yasnippet
911 ;; 35222962-C50D-4D58-A6AE-71E7AD980BE4 =yyas> (yas-unknown)
912 ;;
913 ;; # as in Commands/Toggle ERb Tags.yasnippet
914 ;; 835FAAC6-5431-436C-998B-241F7226B99B =yyas> (yas-unknown)
915 ;;
916 ;; # as in Commands/Toggle StringSymbol.yasnippet
917 ;; B297E4B8-A8FF-49CE-B9C4-6D4911724D43 =yyas> (yas-unknown)
918 ;;
919 ;; # as in Commands/Validate and Save.yasnippet
920 ;; E0E058FC-0DC3-4872-A1C2-0B1A322A0CF5 =yyas> (yas-unknown)
921 ;;
922 ;; # as in Commands/gsub - remove whitespace from front of line.yasnippet
923 ;; B3875596-723C-41EE-9E6F-F84930C3B568 =yyas> (yas-unknown)
924 ;;
925 ;; # as in Commands/Check ERB Syntax.yasnippet
926 ;; 76FCF165-54CB-4213-BC55-BD60B9C6A3EC =yyas> (yas-unknown)
927 ;;
928 ;; # as in Commands/Check Ruby Syntax.yasnippet
929 ;; EE5F19BA-6C02-11D9-92BA-0011242E4184 =yyas> (yas-unknown)
930 ;;
931 ;; # as in Commands/Execute Line with Ruby.yasnippet
932 ;; EE5F1FB2-6C02-11D9-92BA-0011242E4184 =yyas> (yas-unknown)
933 ;;
934 ;; # as in Commands/Insert Missing Requires.yasnippet
935 ;; 9FB64639-F776-499B-BA6F-BB45F86F80FD =yyas> (yas-unknown)
936 ;;
937 ;; # as in Commands/Make Destructive Call.yasnippet
938 ;; 7F79BC8D-8A4F-4570-973B-05DFEC25747F =yyas> (yas-unknown)
939 ;;
940 ;; # as in Commands/New Method.yasnippet
941 ;; 0275EF39-9357-408F-AF20-79E415CA9504 =yyas> (yas-unknown)
942 ;;
943 ;; # as in Commands/Run focused unit test.yasnippet
944 ;; 5289EE40-86B8-11D9-A8D4-000A95E13C98 =yyas> (yas-unknown)
945 ;;
946 ;; # as in Commands/Show RDoc for this file.yasnippet
947 ;; 1AD6A138-2E89-4D6A-AB3F-416BF9CE968D =yyas> (yas-unknown)
948 ;;
949 ;; # as in Commands/Toggle Quote Style.yasnippet
950 ;; 6519CB08-8326-4B77-A251-54722FFBFC1F =yyas> (yas-unknown)
951 ;;
952 ;; # as in Commands/word_wrap() (worw).yasnippet
953 ;; 97054C4D-E4A3-45B1-9C00-B82DBCB30CAD =yyas> (yas-unknown)
954 ;;
955 ;; # as in Macros/Overwrite } in #{ .. }.yasnippet
956 ;; E5158F94-CC52-4424-A495-14EF9272653F =yyas> (yas-unknown)
957 ;;
958 ;; # as in Macros/YAML.dump(.., file) (Yd).yasnippet
959 ;; 9460392B-C036-4A76-A5AE-1191F10E4B1B =yyas> (yas-unknown)
960 ;;
961 ;; # as in Macros/YAML.load(file) (Yl).yasnippet
962 ;; 2C07D4E7-D74F-4AE4-82BE-B0BA82247AFA =yyas> (yas-unknown)
963 ;;
964 ;; # as in Macros/class .. DelegateClass .. initialize .. end (class).yasnippet
965 ;; 121B334B-2AA6-4E9A-A8B8-BF93B627982B =yyas> (yas-unknown)
966 ;;
967 ;; # as in Macros/each_cons(..) { group .. } (eac).yasnippet
968 ;; EC73D5CC-5F05-46B9-A6F4-82037E4A38C9 =yyas> (yas-unknown)
969 ;;
970 ;; # as in Macros/each_slice(..) { group .. } (eas).yasnippet
971 ;; 825B721D-4367-4DF7-98C0-F005695DF9E3 =yyas> (yas-unknown)
972 ;;
973 ;; # as in Macros/extend Forwardable (Forw).yasnippet
974 ;; 58FDEA60-10AF-4C49-AA09-29B77030DB25 =yyas> (yas-unknown)
975 ;;
976 ;; # as in Macros/map_with_index { e, i .. } (mapwi).yasnippet
977 ;; BFB65D1C-62F1-485D-8A67-3E5A2E55107C =yyas> (yas-unknown)
978 ;;
979 ;; # as in Snippets/class .. TestUnitTestCase .. end (tc).yasnippet
980 ;; (yas-multi-line-unknown 31D1F145-33AB-4441-BA11-4D1C46928C4C) =yyas> (yas-unknown)
981 ;;
982 ;; # as in Snippets/module .. end.yasnippet
983 ;; `(yas-ruby-infer-class-name)` =yyas> (yas-unknown)
984 ;;
985 ;; # as in Macros/Benchmark_bmbm(__) do __ end.yasnippet
986 ;; C649F945-DAB8-4DA2-B73C-2EFF9D7D34F3 =yyas> (yas-unknown)
987 ;;
988 ;; # as in Macros/Delete forwardbackward.yasnippet
989 ;; A83F68A9-F751-4BB4-AE16-56812878C16A =yyas> (yas-unknown)
990 ;;
991 ;; # as in Macros/PStore_new( __ ).yasnippet
992 ;; 5AE7CFB4-418E-4E00-AD76-06DB755EE876 =yyas> (yas-unknown)
993 ;;
994 ;; # as in Macros/xmlread(__).yasnippet
995 ;; F6BF907E-FDF7-4D9B-9E57-BE159561349D =yyas> (yas-unknown)
996 ;;
997 ;;
998
999 ;; Substitutions for: condition
1000 ;;
1001 ;; # as in Macros/xmlread(__).yasnippet
1002 ;; =yyas> (yas-unknown)
1003 ;;
1004 ;; # as in Snippets/Insert ERb's __ or = __.yasnippet
1005 ;; text.html, source.yaml =yyas> (yas-unknown)
1006 ;;
1007 ;;
1008
1009 ;; Substitutions for: binding
1010 ;;
1011 ;; # as in Commands/Completion Ruby (rcodetools).yasnippet
1012 ;; ~\e =yyas> (yas-unknown)
1013 ;;
1014 ;; # as in Commands/Enclose in + (RDoc comments).yasnippet
1015 ;; @k =yyas> (yas-unknown)
1016 ;;
1017 ;; # as in Commands/Omit from RDoc.yasnippet
1018 ;; ^@O =yyas> (yas-unknown)
1019 ;;
1020 ;; # as in Commands/Open Require.yasnippet
1021 ;; @D =yyas> (yas-unknown)
1022 ;;
1023 ;; # as in Commands/Validate and Save.yasnippet
1024 ;; @s =yyas> (yas-unknown)
1025 ;;
1026 ;; # as in Commands/Check Ruby Syntax.yasnippet
1027 ;; ^V =yyas> (yas-unknown)
1028 ;;
1029 ;; # as in Commands/Execute Line with Ruby.yasnippet
1030 ;; ^E =yyas> (yas-unknown)
1031 ;;
1032 ;; # as in Commands/Make Destructive Call.yasnippet
1033 ;; ^! =yyas> (yas-unknown)
1034 ;;
1035 ;; # as in Commands/Toggle Quote Style.yasnippet
1036 ;; ^" =yyas> (yas-unknown)
1037 ;;
1038 ;; # as in Macros/Overwrite } in #{ .. }.yasnippet
1039 ;; } =yyas> (yas-unknown)
1040 ;;
1041 ;; # as in Snippets/hash pointer.yasnippet
1042 ;; ^l =yyas> (yas-unknown)
1043 ;;
1044 ;; # as in Macros/Delete forwardbackward.yasnippet
1045 ;; \7f =yyas> (yas-unknown)
1046 ;;
1047 ;;
1048
1049 ;; .yas-setup.el for ruby-mode ends here