plugin to insert end automatically in ruby