typofix: lambda. also follows coding convention

This commit is contained in:
ujihisa 2013-04-01 20:13:15 -07:00
parent 5f69130b33
commit f25adadc50

View File

@ -75,41 +75,47 @@ options word
snippet each_byte snippet each_byte
options word options word
each_byte { |${1:#:variable}| ${2} } each_byte {|${1:#:variable}| ${2} }
snippet each_char snippet each_char
options word options word
each_char { |${1:#:variable}| ${2} } each_char {|${1:#:variable}| ${2} }
snippet each_index snippet each_index
options word options word
each_index { |${1:#:variable}| ${2} } each_index {|${1:#:variable}| ${2} }
snippet each_key snippet each_key
options word options word
each_key { |${1:#:variable}| ${2} } each_key {|${1:#:variable}| ${2} }
snippet each_line snippet each_line
options word options word
each_line { |${1:#:variable}| ${2} } each_line {|${1:#:variable}| ${2} }
snippet each_with_index snippet each_with_index
options word options word
each_with_index { |${1:#:variable}| ${2} } each_with_index {|${1:#:variable}| ${2} }
snippet map snippet map
options word options word
map { |${1:#:variable}| ${2} } map {|${1:#:variable}| ${2} }
snippet sort snippet sort
options word options word
sort { |${1:#:variable}| ${2} } sort {|${1:#:variable}| ${2} }
snippet sort_by snippet sort_by
options word options word
sort_by { |${1:#:variable}| ${2} } sort_by {|${1:#:variable}| ${2} }
snippet lamda snippet lambda
options word options word
lambda { |${1:#:args}| ${2} } lambda {|${1:#:args}| ${2} }
snippet main
options head
if __FILE__ == $ 0
${1:TARGET}
end
# the space is necessary unfortunately..