All,
I was wondering if anyone has an intermit enough knowledge of rubys 'require' to tell me if the following is valid ruby or not;
class Something
def initialize(mode)
case mode
when :one then require 'some_gem'
when :two then require 'other_gem'
end
end
end
s = Something.new
If so, would the require place the gem into the global namespace as the same require at the top of the file would?
Cheers,
Roja