Ruby mixin gives unidentified constant error
Posted
by Bilal Aslam
on Stack Overflow
See other posts from Stack Overflow
or by Bilal Aslam
Published on 2010-03-14T00:54:50Z
Indexed on
2010/03/14
1:05 UTC
Read the original article
Hit count: 411
ruby
In irb, I do this
class Text
include FileUtils
end
I get: NameError: uninitialized constant Test::FileUtils
If I just do: include FileUtils (i.e. now class) everthing works.
What gives?
© Stack Overflow or respective owner