diff --git a/autoload/neosnippet/snippets/ruby.snip b/autoload/neosnippet/snippets/ruby.snip index d631e40..7c06441 100644 --- a/autoload/neosnippet/snippets/ruby.snip +++ b/autoload/neosnippet/snippets/ruby.snip @@ -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..