mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
Removed final newline from snippet files.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
#name : all? { |...| ... }
|
||||
# --
|
||||
all? { |${e}| $0 }
|
||||
all? { |${e}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : any? { |...| ... }
|
||||
# --
|
||||
any? { |${e}| $0 }
|
||||
any? { |${e}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : classify { |...| ... }
|
||||
# --
|
||||
classify { |${e}| $0 }
|
||||
classify { |${e}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : collect { |...| ... }
|
||||
# --
|
||||
collect { |${e}| $0 }
|
||||
collect { |${e}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : delete_if { |...| ... }
|
||||
# --
|
||||
delete_if { |${e} $0 }
|
||||
delete_if { |${e} $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : detect { |...| ... }
|
||||
# --
|
||||
detect { |${e}| $0 }
|
||||
detect { |${e}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : each { |...| ... }
|
||||
# --
|
||||
each { |${e}| $0 }
|
||||
each { |${e}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : each_cons(...) { |...| ... }
|
||||
# --
|
||||
each_cons(${1:2}) { |${group}| $0 }
|
||||
each_cons(${1:2}) { |${group}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : each_index { |i| ... }
|
||||
# --
|
||||
each_index { |${i}| $0 }
|
||||
each_index { |${i}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : each_value { |val| ... }
|
||||
# --
|
||||
each_value { |${val}| $0 }
|
||||
each_value { |${val}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : each_with_index { |e, i| ... }
|
||||
# --
|
||||
each_with_index { |${e}, ${i}| $0 }
|
||||
each_with_index { |${e}, ${i}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : inject(...) { |...| ... }
|
||||
# --
|
||||
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
|
||||
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : reject { |...| ... }
|
||||
# --
|
||||
reject { |${1:element}| $0 }
|
||||
reject { |${1:element}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : select { |...| ... }
|
||||
# --
|
||||
select { |${1:element}| $0 }
|
||||
select { |${1:element}| $0 }
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : zip(...) { |...| ... }
|
||||
# --
|
||||
zip(${enums}) { |${row}| $0 }
|
||||
zip(${enums}) { |${row}| $0 }
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
for ${1:element} in ${2:collection}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
if ${1:condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -4,4 +4,4 @@ if ${1:condition}
|
||||
$2
|
||||
else
|
||||
$3
|
||||
end
|
||||
end
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : times { |n| ... }
|
||||
# --
|
||||
times { |${n}| $0 }
|
||||
times { |${n}| $0 }
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
until ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
upto(${n}) { |${i}|
|
||||
$0
|
||||
}
|
||||
}
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
when ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
while ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -4,4 +4,4 @@ include Comparable
|
||||
|
||||
def <=> other
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : alias_method new, old
|
||||
# --
|
||||
alias_method :${new_name}, :${old_name}
|
||||
alias_method :${new_name}, :${old_name}
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
class << ${self}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -9,4 +9,4 @@ class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
((string-match "_" fn) (replace-match "" nil nil fn))
|
||||
(t fn)))`}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
def method_missing(method, *args)
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : attr_reader ...
|
||||
# --
|
||||
attr_reader :
|
||||
attr_reader :
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : attr_accessor ...
|
||||
# --
|
||||
attr_accessor :
|
||||
attr_accessor :
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : attr_writer ...
|
||||
# --
|
||||
attr_writer :
|
||||
attr_writer :
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : # =>
|
||||
# --
|
||||
# =>
|
||||
# =>
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
=begin rdoc
|
||||
$0
|
||||
=end
|
||||
=end
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
if __FILE__ == $PROGRAM_NAME
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -2,4 +2,4 @@
|
||||
# --
|
||||
Benchmark.bmbm(${1:10}) do |x|
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -3,4 +3,4 @@
|
||||
case ${1:object}
|
||||
when ${2:condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : deep_copy(...)
|
||||
# --
|
||||
Marshal.load(Marshal.dump($0))
|
||||
Marshal.load(Marshal.dump($0))
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : /usr/bin/ruby -wKU
|
||||
# --
|
||||
#!/usr/bin/ruby -wKU
|
||||
#!/usr/bin/ruby -wKU
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : require "..."
|
||||
# --
|
||||
require "$0"
|
||||
require "$0"
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : require File.join(File.dirname(__FILE__), ...)
|
||||
# --
|
||||
require File.join(File.dirname(__FILE__), $0)
|
||||
require File.join(File.dirname(__FILE__), $0)
|
||||
@@ -1,3 +1,3 @@
|
||||
#name : :yields: arguments (rdoc)
|
||||
# --
|
||||
:yields: $0
|
||||
:yields: $0
|
||||
Reference in New Issue
Block a user