Ruby 2.4 Let's say that we have a string Projects::CategoriesController and we want to remove Controller. We can use chomp method. 1irb> "Projects::CategoriesController".chomp("Controller") 2=> "Projects::Categories"Copy However if we want to remove Projects:: from the string then there is no corresponding method of chomp. We need to resort to sub. Naotoshi Seo did not like using regular expressio