mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 17:42:03 +00:00
removing directives from some classic snippets
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#name : # =>
|
||||
#group : general
|
||||
# --
|
||||
# =>
|
||||
# =>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : =begin rdoc ... =end
|
||||
#group : general
|
||||
# --
|
||||
=begin rdoc
|
||||
$0
|
||||
=end
|
||||
=end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : if __FILE__ == $PROGRAM_NAME ... end
|
||||
#group : general
|
||||
# --
|
||||
if __FILE__ == $PROGRAM_NAME
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : Benchmark.bmbm(...) do ... end
|
||||
#group : general
|
||||
# --
|
||||
Benchmark.bmbm(${1:10}) do |x|
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#name : case ... end
|
||||
#group : general
|
||||
# --
|
||||
case ${1:object}
|
||||
when ${2:condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#name : deep_copy(...)
|
||||
#group : general
|
||||
# --
|
||||
Marshal.load(Marshal.dump($0))
|
||||
Marshal.load(Marshal.dump($0))
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#name : /usr/bin/ruby -wKU
|
||||
#group : general
|
||||
# --
|
||||
#!/usr/bin/ruby -wKU
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#name : require "..."
|
||||
#group : general
|
||||
# --
|
||||
require "$0"
|
||||
require "$0"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#name : :yields: arguments (rdoc)
|
||||
#group : general
|
||||
# --
|
||||
:yields: $0
|
||||
:yields: $0
|
||||
|
||||
Reference in New Issue
Block a user