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,4 @@
#name : # =>
#group : general
# --
# =>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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