Last commit before tagging and releasing

This commit is contained in:
capitaomorte
2009-08-29 17:59:02 +00:00
parent 15c7703b5b
commit b8dcf61367
640 changed files with 4360 additions and 77 deletions

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: #
# contributor: Translated from TextMate Snippet
# name: Add # => Marker
# --
# =>

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: Array
# contributor: Translated from TextMate Snippet
# name: Array.new(10) { |i| .. }
# --
Array.new(${1:10}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:i}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: deli
# contributor: Translated from TextMate Snippet
# name: delete_if { |e| .. }
# --
delete_if { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: fil
# contributor: Translated from TextMate Snippet
# name: fill(range) { |i| .. }
# --
fill(${1:range}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:i}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: flao
# contributor: Translated from TextMate Snippet
# name: flatten_once()
# --
inject(Array.new) { |${1:arr}, ${2:a}| ${1:arr}.push(*${2:a}) }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: zip
# contributor: Translated from TextMate Snippet
# name: zip(enums) { |row| .. }
# --
zip(${1:enums}) { |${2:row}| $0 }

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: do
# contributor: Translated from TextMate Snippet
# name: Insert do |variable| … end
# --
do${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1: |)/}${1:variable}${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: lam
# contributor: Translated from TextMate Snippet
# name: lambda { |args| .. }
# --
lambda { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:args}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: {
# contributor: Translated from TextMate Snippet
# name: Insert { |variable| … }
# --
{ ${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:variable}${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}${2:`yas/selected-text`}

View File

@@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# key: cla-
# contributor: Translated from TextMate Snippet
# name: class .. < DelegateClass .. initialize .. end
# --
class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} < DelegateClass(${2:ParentClass})
def initialize${3/(^.*?\S.*)|.*/(?1:\()/}${3:args}${3/(^.*?\S.*)|.*/(?1:\))/}
super(${4:del_obj})
$0
end
end

View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: class .. < ParentClass .. initialize .. end
# --
class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} < ${2:ParentClass}
def initialize${3/(^.*?\S.*)|.*/(?1:\()/}${3:args}${3/(^.*?\S.*)|.*/(?1:\))/}
$0
end
end

View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: ClassName = Struct .. do .. end
# --
${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} = Struct.new(:${2:attr_names}) do
def ${3:method_name}
$0
end
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: class .. end
# --
class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
$0
end

View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: class .. initialize .. end
# --
class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
def initialize${2/(^.*?\S.*)|.*/(?1:\()/}${2:args}${2/(^.*?\S.*)|.*/(?1:\))/}
$0
end
end

View File

@@ -0,0 +1,20 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: class BlankSlate .. initialize .. end
# --
class ${1:BlankSlate}
instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ }
def initialize${2/(^.*?\S.*)|.*/(?1:\()/}${2:args}${2/(^.*?\S.*)|.*/(?1:\))/}
@${3:delegate} = ${4:delegate_object}
$0
end
def method_missing(meth, *args, &block)
@${3:delegate}.send(meth, *args, &block)
end
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: class << self .. end
# --
class << ${1:self}
$0
end

View File

@@ -0,0 +1,19 @@
# -*- mode: snippet -*-
# key: mod
# contributor: Translated from TextMate Snippet
# name: module .. ClassMethods .. end
# --
module ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
module ClassMethods
$0
end
module InstanceMethods
end
def self.included(receiver)
receiver.extend ClassMethods
receiver.send :include, InstanceMethods
end
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: mod
# contributor: Translated from TextMate Snippet
# name: module .. end
# --
module ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
$0
end

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# key: mod
# contributor: Translated from TextMate Snippet
# name: module .. module_function .. end
# --
module ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
module_function
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: dow
# contributor: Translated from TextMate Snippet
# name: downto(0) { |n| .. }
# --
downto(${1:0}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: loo
# contributor: Translated from TextMate Snippet
# name: loop { .. }
# --
loop { $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: ste
# contributor: Translated from TextMate Snippet
# name: step(2) { |e| .. }
# --
step(${1:2}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: tim
# contributor: Translated from TextMate Snippet
# name: times { |n| .. }
# --
times { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:n}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: upt
# contributor: Translated from TextMate Snippet
# name: upto(1.0/0.0) { |n| .. }
# --
upto(${1:1.0/0.0}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: rb
# contributor: Translated from TextMate Snippet
# name: #!/usr/bin/env ruby -wKU
# --
#!/usr/bin/env ruby${TM_RUBY_SWITCHES: -wKU}

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# key: ife
# contributor: Translated from TextMate Snippet
# name: if … else … end
# --
if ${1:condition}
$2
else
$3
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: if
# contributor: Translated from TextMate Snippet
# name: if … end
# --
if ${1:condition}
$0
end

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: case
# contributor: Translated from TextMate Snippet
# name: case … end
# --
case ${1:object}
when ${2:condition}
$0
end

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# key: begin
# contributor: Translated from TextMate Snippet
# name: begin … rescue … end
# binding: "^W"
# --
${TM_SELECTED_TEXT/([\t ]*).*/$1/m}begin
${3:${TM_SELECTED_TEXT/(\A.*)|(.+)|\n\z/(?1:$0:(?2:\t$0))/g}}
${TM_SELECTED_TEXT/([\t ]*).*/$1/m}rescue ${1:Exception}${2/.+/ => /}${2:e}
${TM_SELECTED_TEXT/([\t ]*).*/$1/m} $0
${TM_SELECTED_TEXT/([\t ]*).*/$1/m}end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: end
# contributor: Translated from TextMate Snippet
# name: __END__
# --
__END__

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: app
# contributor: Translated from TextMate Snippet
# name: application { .. }
# --
if __FILE__ == \$PROGRAM_NAME
$0
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: def
# contributor: Translated from TextMate Snippet
# name: def … end
# --
def ${1:method_name}
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: elsif
# contributor: Translated from TextMate Snippet
# name: elsif ...
# --
elsif ${1:condition}
$0

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: req
# contributor: Translated from TextMate Snippet
# name: require ".."
# --
require "$0"

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: reqg-
# contributor: Translated from TextMate Snippet
# name: require_gem ".."
# --
require "$0"

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: unless
# contributor: Translated from TextMate Snippet
# name: unless … end
# --
unless ${1:condition}
$0
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: until
# contributor: Translated from TextMate Snippet
# name: until ... end
# --
until ${1:condition}
$0
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: usai
# contributor: Translated from TextMate Snippet
# name: usage_if()
# --
if ARGV.$1
abort "Usage: #{\$PROGRAM_NAME} ${2:ARGS_GO_HERE}"
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: usau
# contributor: Translated from TextMate Snippet
# name: usage_unless()
# --
unless ARGV.$1
abort "Usage: #{\$PROGRAM_NAME} ${2:ARGS_GO_HERE}"
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: when
# contributor: Translated from TextMate Snippet
# name: when …
# --
when ${1:condition}
$0

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: while
# contributor: Translated from TextMate Snippet
# name: while ... end
# --
while ${1:condition}
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: ea
# contributor: Translated from TextMate Snippet
# name: each { |e| .. }
# --
each { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eab
# contributor: Translated from TextMate Snippet
# name: each_byte { |byte| .. }
# --
each_byte { |${1:byte}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eac-
# contributor: Translated from TextMate Snippet
# name: each_char { |chr| .. }
# --
each_char { |${1:chr}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eac-
# contributor: Translated from TextMate Snippet
# name: each_cons(..) { |group| .. }
# --
each_cons(${1:2}) { |${2:group}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eai
# contributor: Translated from TextMate Snippet
# name: each_index { |i| .. }
# --
each_index { |${1:i}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eak
# contributor: Translated from TextMate Snippet
# name: each_key { |key| .. }
# --
each_key { |${1:key}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eal
# contributor: Translated from TextMate Snippet
# name: each_line { |line| .. }
# --
each_line$1 { |${2:line}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eap
# contributor: Translated from TextMate Snippet
# name: each_pair { |name, val| .. }
# --
each_pair { |${1:name}, ${2:val}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eas-
# contributor: Translated from TextMate Snippet
# name: each_slice(..) { |group| .. }
# --
each_slice(${1:2}) { |${2:group}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eav
# contributor: Translated from TextMate Snippet
# name: each_value { |val| .. }
# --
each_value { |${1:val}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: eawi
# contributor: Translated from TextMate Snippet
# name: each_with_index { |e, i| .. }
# --
each_with_index { |${1:e}, ${2:i}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: inj
# contributor: Translated from TextMate Snippet
# name: inject(init) { |mem, var| .. }
# --
inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: map
# contributor: Translated from TextMate Snippet
# name: map { |e| .. }
# --
map { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: mapwi-
# contributor: Translated from TextMate Snippet
# name: map_with_index { |e, i| .. }
# --
enum_with_index.map { |${1:e}, ${2:i}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: reve
# contributor: Translated from TextMate Snippet
# name: reverse_each { |e| .. }
# --
reverse_each { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: Dir
# contributor: Translated from TextMate Snippet
# name: Dir.glob("..") { |file| .. }
# --
Dir.glob(${1:"${2:dir/glob/*}"}) { |${3:file}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: Dir
# contributor: Translated from TextMate Snippet
# name: Dir[".."]
# --
Dir[${1:"${2:glob/**/*.rb}"}]

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: File
# contributor: Translated from TextMate Snippet
# name: File.foreach ("..") { |line| .. }
# --
File.foreach(${1:"${2:path/to/file}"}) { |${3:line}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: File
# contributor: Translated from TextMate Snippet
# name: File.open("..") { |file| .. }
# --
File.open(${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:file}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: File
# contributor: Translated from TextMate Snippet
# name: File.read("..")
# --
File.read(${1:"${2:path/to/file}"})

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: dir
# contributor: Translated from TextMate Snippet
# name: directory()
# --
File.dirname(__FILE__)

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: ope
# contributor: Translated from TextMate Snippet
# name: open("path/or/url", "w") { |io| .. }
# --
open(${1:"${2:path/or/url/or/pipe}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:io}| $0 }

View File

@@ -0,0 +1,32 @@
# -*- mode: snippet -*-
# key: optp
# contributor: Translated from TextMate Snippet
# name: option_parse { .. }
# --
require "optparse"
options = {${1::default => "args"}}
ARGV.options do |opts|
opts.banner = "Usage: #{File.basename(\$PROGRAM_NAME)} [OPTIONS]${2/^\s*$|(.*\S.*)/(?1: )/}${2:OTHER_ARGS}"
opts.separator ""
opts.separator "Specific Options:"
$0
opts.separator "Common Options:"
opts.on( "-h", "--help",
"Show this message." ) do
puts opts
exit
end
begin
opts.parse!
rescue
puts opts
exit
end
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: patfh
# contributor: Translated from TextMate Snippet
# name: path_from_here( .. )
# --
File.join(File.dirname(__FILE__), *%w[${1:rel path here}])

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: unif
# contributor: Translated from TextMate Snippet
# name: unix_filter { .. }
# --
ARGF.each_line$1 do |${2:line}|
$0
end

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: opt
# contributor: Translated from TextMate Snippet
# name: option(..)
# --
opts.on( "-${1:o}", "--${2:long-option-name}"${3/^\s*$|(.*\S.*)/(?1:, )/}${3:String},
"${4:Option description.}" ) do |${6:opt}|
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: Hash
# contributor: Translated from TextMate Snippet
# name: Hash.new { |hash, key| hash[key] = .. }
# --
Hash.new { |${1:hash}, ${2:key}| ${1:hash}[${2:key}] = $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: :
# contributor: Translated from TextMate Snippet
# name: Hash Pair — :key => "value"
# --
:${1:key} => ${2:"${3:value}"}${4:, }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor: Translated from TextMate Snippet
# name: Hash Pointer — =>
# binding: "^l"
# --
=>

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: clafn
# contributor: Translated from TextMate Snippet
# name: class_from_name()
# --
split("::").inject(Object) { |par, const| par.const_get(const) }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: deec
# contributor: Translated from TextMate Snippet
# name: deep_copy(..)
# --
Marshal.load(Marshal.dump(${0:obj_to_copy}))

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: sinc
# contributor: Translated from TextMate Snippet
# name: singleton_class()
# --
class << self; self end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor: Translated from TextMate Snippet
# name: Insert ERbs <% .. %> or <%= .. %>
# binding: "^>"
# --
<%= `yas/selected-text`$0 %>

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: am
# contributor: Translated from TextMate Snippet
# name: alias_method ..
# --
alias_method :${1:new_name}, :${0:old_name}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: rw
# contributor: Translated from TextMate Snippet
# name: attr_accessor ..
# --
attr_accessor :${0:attr_names}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: r
# contributor: Translated from TextMate Snippet
# name: attr_reader ..
# --
attr_reader :${0:attr_names}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: w
# contributor: Translated from TextMate Snippet
# name: attr_writer ..
# --
attr_writer :${0:attr_names}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: defmm
# contributor: Translated from TextMate Snippet
# name: def method_missing .. end
# --
def method_missing(meth, *args, &blk)
$0
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: defs
# contributor: Translated from TextMate Snippet
# name: def self .. end
# --
def self.${1:class_method_name}
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: defd
# contributor: Translated from TextMate Snippet
# name: def_delegator ..
# --
def_delegator :${1:@del_obj}, :${2:del_meth}, :${3:new_name}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: defds
# contributor: Translated from TextMate Snippet
# name: def_delegators ..
# --
def_delegators :${1:@del_obj}, :${0:del_methods}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: Forw-
# contributor: Translated from TextMate Snippet
# name: extend Forwardable
# --
extend Forwardable

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# key: Comp
# contributor: Translated from TextMate Snippet
# name: include Comparable ..
# --
include Comparable
def <=>(other)
$0
end

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# key: Enum
# contributor: Translated from TextMate Snippet
# name: include Enumerable ..
# --
include Enumerable
def each(&block)
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: ran
# contributor: Translated from TextMate Snippet
# name: randomize()
# --
sort_by { rand }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: sor
# contributor: Translated from TextMate Snippet
# name: sort { |a, b| .. }
# --
sort { |a, b| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: sorb
# contributor: Translated from TextMate Snippet
# name: sort_by { |e| .. }
# --
sort_by { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: y
# contributor: Translated from TextMate Snippet
# name: :yields:
# --
:yields: ${0:arguments}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: =b
# contributor: Translated from TextMate Snippet
# name: New Block
# --
`[[ $TM_LINE_INDEX != 0 ]] && echo; echo`=begin rdoc
$0
=end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# key: nam
# contributor: Translated from TextMate Snippet
# name: namespace :.. do .. end
# --
namespace :${1:${TM_FILENAME/\.\w+//}} do
$0
end

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: tas
# contributor: Translated from TextMate Snippet
# name: task :task_name => [:dependent, :tasks] do .. end
# --
desc "${1:Task description}"
task :${2:${3:task_name} => ${4:[:${5:dependent, :tasks}]}} do
$0
end

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: all
# contributor: Translated from TextMate Snippet
# name: all? { |e| .. }
# --
all? { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: any
# contributor: Translated from TextMate Snippet
# name: any? { |e| .. }
# --
any? { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: cl
# contributor: Translated from TextMate Snippet
# name: classify { |e| .. }
# --
classify { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: col
# contributor: Translated from TextMate Snippet
# name: collect { |e| .. }
# --
collect { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: det
# contributor: Translated from TextMate Snippet
# name: detect { |e| .. }
# --
detect { |${1:e}| $0 }

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: fet
# contributor: Translated from TextMate Snippet
# name: fetch(name) { |key| .. }
# --
fetch(${1:name}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:key}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }

Some files were not shown because too many files have changed in this diff Show More