What is the difference between include and require in Ruby?
Posted
by Owen
on Stack Overflow
See other posts from Stack Overflow
or by Owen
Published on 2008-11-25T17:12:31Z
Indexed on
2010/06/14
23:22 UTC
Read the original article
Hit count: 243
My question is similar to this one over here about include and extend.
What's the difference between require
and include
in Ruby? If I just want to use the methods from a module in my class, should I require
it or include
it?
© Stack Overflow or respective owner