restructuring classic snippets dir to conform to new parenting specs

This commit is contained in:
capitaomorte
2009-12-25 14:42:14 +00:00
parent 060e2ce5f1
commit c3d91ffccc
42 changed files with 0 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
#name : include Comparable; def <=> ... end
#group : definitions
# --
include Comparable
def <=> other
$0
end

View File

@@ -0,0 +1,4 @@
#name : alias_method new, old
#group : definitions
# --
alias_method :${new_name}, :${old_name}

View File

@@ -0,0 +1,6 @@
#name : class << self ... end
#group : definitions
# --
class << ${self}
$0
end

View File

@@ -0,0 +1,13 @@
#name : class ... end
#contributor : hitesh <hitesh.jasani@gmail.com>
#group : definitions
# --
class ${1:`(let ((fn (capitalize (file-name-nondirectory
(file-name-sans-extension
(or (buffer-file-name)
(buffer-name (current-buffer))))))))
(cond
((string-match "_" fn) (replace-match "" nil nil fn))
(t fn)))`}
$0
end

View File

@@ -0,0 +1,6 @@
#name : def method_missing ... end
#group : definitions
# --
def method_missing(method, *args)
$0
end

View File

@@ -0,0 +1,4 @@
#name : attr_reader ...
#group : definitions
# --
attr_reader :

View File

@@ -0,0 +1,4 @@
#name : attr_accessor ...
#group : definitions
# --
attr_accessor :

View File

@@ -0,0 +1,4 @@
#name : attr_writer ...
#group : definitions
# --
attr_writer :