typofix: lambda. also follows coding convention

This commit is contained in:
ujihisa 2013-04-01 20:13:15 -07:00
parent 5f69130b33
commit f25adadc50
1 changed files with 17 additions and 11 deletions

View File

@ -75,41 +75,47 @@ options word
snippet each_byte
options word
each_byte { |${1:#:variable}| ${2} }
each_byte {|${1:#:variable}| ${2} }
snippet each_char
options word
each_char { |${1:#:variable}| ${2} }
each_char {|${1:#:variable}| ${2} }
snippet each_index
options word
each_index { |${1:#:variable}| ${2} }
each_index {|${1:#:variable}| ${2} }
snippet each_key
options word
each_key { |${1:#:variable}| ${2} }
each_key {|${1:#:variable}| ${2} }
snippet each_line
options word
each_line { |${1:#:variable}| ${2} }
each_line {|${1:#:variable}| ${2} }
snippet each_with_index
options word
each_with_index { |${1:#:variable}| ${2} }
each_with_index {|${1:#:variable}| ${2} }
snippet map
options word
map { |${1:#:variable}| ${2} }
map {|${1:#:variable}| ${2} }
snippet sort
options word
sort { |${1:#:variable}| ${2} }
sort {|${1:#:variable}| ${2} }
snippet sort_by
options word
sort_by { |${1:#:variable}| ${2} }
sort_by {|${1:#:variable}| ${2} }
snippet lamda
snippet lambda
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..