Rename types.rb to type.rb