On Sat, Jan 10, 2015 at 12:00 PM, bert hajee <bert.ha...@gmail.com> wrote:
> Now if we require puppet: > > require 'puppet' > module Puppet > puts Module.nesting > end > > I get: > > <module:Puppet>': undefined method `nesting' for Puppet::Module:Class > (NoMethodError) > Puppet has a class named Puppet::Module, and since you're referring to Module inside of Puppet it's interpreting it as a relative name and finding the wrong one. If you do 'puts ::Module.nesting' it should work. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CABkpuDuanWouD2PnEm6VDCAOLmYUgMs5isvTfP0tGbO5gPuh7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.