I need some insights and help debugging a cucumber + capybara + site_prism project. I get warnings like this:
/banners/banner_seo.rb:9: warning: already initialized constant Desktop::BannerSeo::MIN_LINKS /banners/banner_seo.rb:9: warning: previous definition of MIN_LINKS was here
Running with --verbose doesn't seem to imply that files are being loaded twice, and what's more, we use `require' (duh) which should prove that files are _not_ being loaded twice.
Inside method defined inside a module, is there a self.<something> that would show the name of the module?
Like, in a class method, I can do self.class and it shows the name of the class in which the method is defined. Can I show the name of the module in which the module is defined in a similar fashion?
I have a file 'dev.rb' with some methods defined like def obj.foo. I do irb --simple-prompt, then load 'dev.rb' and when I try to do p obj.foo, I get 'undefined variable or method obj'.