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 : # =>
#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