removing directives from some classic snippets

This commit is contained in:
capitaomorte
2009-12-25 17:45:46 +00:00
parent 5cc5037cee
commit 546237f7de
70 changed files with 67 additions and 136 deletions

View File

@@ -1,4 +1,3 @@
#name : all? { |...| ... }
#group : collections
# --
all? { |${e}| $0 }
all? { |${e}| $0 }

View File

@@ -1,4 +1,3 @@
#name : any? { |...| ... }
#group : collections
# --
any? { |${e}| $0 }
any? { |${e}| $0 }

View File

@@ -1,4 +1,3 @@
#name : classify { |...| ... }
#group : collections
# --
classify { |${e}| $0 }
classify { |${e}| $0 }

View File

@@ -1,4 +1,3 @@
#name : collect { |...| ... }
#group : collections
# --
collect { |${e}| $0 }
collect { |${e}| $0 }

View File

@@ -1,4 +1,3 @@
#name : delete_if { |...| ... }
#group : collections
# --
delete_if { |${e} $0 }
delete_if { |${e} $0 }

View File

@@ -1,4 +1,3 @@
#name : detect { |...| ... }
#group : collections
# --
detect { |${e}| $0 }
detect { |${e}| $0 }

View File

@@ -1,4 +1,3 @@
#name : each { |...| ... }
#group : collections
# --
each { |${e}| $0 }
each { |${e}| $0 }

View File

@@ -1,4 +1,3 @@
#name : each_cons(...) { |...| ... }
#group : collections
# --
each_cons(${1:2}) { |${group}| $0 }
each_cons(${1:2}) { |${group}| $0 }

View File

@@ -1,4 +1,3 @@
#name : each_index { |i| ... }
#group : collections
# --
each_index { |${i}| $0 }
each_index { |${i}| $0 }

View File

@@ -1,4 +1,3 @@
#name : each_value { |val| ... }
#group : collections
# --
each_value { |${val}| $0 }
each_value { |${val}| $0 }

View File

@@ -1,4 +1,3 @@
#name : each_with_index { |e, i| ... }
#group : collections
# --
each_with_index { |${e}, ${i}| $0 }
each_with_index { |${e}, ${i}| $0 }

View File

@@ -1,4 +1,3 @@
#name : inject(...) { |...| ... }
#group : collections
# --
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }

View File

@@ -1,4 +1,3 @@
#name : reject { |...| ... }
#group : collections
# --
reject { |${1:element}| $0 }
reject { |${1:element}| $0 }

View File

@@ -1,4 +1,3 @@
#name : select { |...| ... }
#group : collections
# --
select { |${1:element}| $0 }
select { |${1:element}| $0 }

View File

@@ -1,4 +1,3 @@
#name : zip(...) { |...| ... }
#group : collections
# --
zip(${enums}) { |${row}| $0 }
zip(${enums}) { |${row}| $0 }

View File

@@ -1,6 +1,5 @@
#name : for ... in ...; ... end
#group : control structure
# --
for ${1:element} in ${2:collection}
$0
end
end

View File

@@ -1,6 +1,5 @@
#name : if ... end
#group : control structure
# --
if ${1:condition}
$0
end
end

View File

@@ -1,8 +1,7 @@
#name : if ... else ... end
#group : control structure
# --
if ${1:condition}
$2
else
$3
end
end

View File

@@ -1,4 +1,3 @@
#name : times { |n| ... }
#group : control structure
# --
times { |${n}| $0 }
times { |${n}| $0 }

View File

@@ -3,4 +3,4 @@
# --
until ${condition}
$0
end
end

View File

@@ -1,6 +1,5 @@
#name : upto(...) { |n| ... }
#group : control structure
# --
upto(${n}) { |${i}|
$0
}
}

View File

@@ -1,6 +1,5 @@
#name : when ... end
#group : control structure
# --
when ${condition}
$0
end
end

View File

@@ -1,6 +1,5 @@
#name : while ... end
#group : control structure
# --
while ${condition}
$0
end
end

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,5 @@
#name : class ... end
#contributor : hitesh <hitesh.jasani@gmail.com>
#group : definitions
# --
class ${1:`(let ((fn (capitalize (file-name-nondirectory
(file-name-sans-extension

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,3 @@
#name : # =>
#group : general
# --
# =>
# =>

View File

@@ -1,6 +1,5 @@
#name : =begin rdoc ... =end
#group : general
# --
=begin rdoc
$0
=end
=end

View File

@@ -1,6 +1,5 @@
#name : if __FILE__ == $PROGRAM_NAME ... end
#group : general
# --
if __FILE__ == $PROGRAM_NAME
$0
end
end

View File

@@ -1,6 +1,5 @@
#name : Benchmark.bmbm(...) do ... end
#group : general
# --
Benchmark.bmbm(${1:10}) do |x|
$0
end
end

View File

@@ -1,7 +1,6 @@
#name : case ... end
#group : general
# --
case ${1:object}
when ${2:condition}
$0
end
end

View File

@@ -1,4 +1,3 @@
#name : deep_copy(...)
#group : general
# --
Marshal.load(Marshal.dump($0))
Marshal.load(Marshal.dump($0))

View File

@@ -1,4 +1,3 @@
#name : /usr/bin/ruby -wKU
#group : general
# --
#!/usr/bin/ruby -wKU

View File

@@ -1,4 +1,3 @@
#name : require "..."
#group : general
# --
require "$0"
require "$0"

View File

@@ -1,4 +1,3 @@
#name : require File.join(File.dirname(__FILE__), ...)
#group : general
# --
require File.join(File.dirname(__FILE__), $0)
require File.join(File.dirname(__FILE__), $0)

View File

@@ -1,4 +1,3 @@
#name : :yields: arguments (rdoc)
#group : general
# --
:yields: $0
:yields: $0