Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"use" keyword/word in Ruby/Rails/Rack code

Tags:

Recently I happened to see this word in Ruby code, use, when I was going through some code related to goliath, middleware etc. Looks like it is different from include/extend, and require.

Can somebody explain why this use keyword exists, and how it is different from include/require? How does it work, when to use it?