From: Joel VanderWerf Date: 2010-08-31T10:07:01+09:00 Subject: Re: Namespaces too looooooong On 08/30/2010 05:51 PM, Iain Barnett wrote: > Hi, > > What's the best trick for avoiding RSI with nested modules? For example, > > module This_is_ok > module This_is_already_a_chore > class Wow_I_have_no_feeling_left > > class<< self > def in_my_hands? > ... > end > end > end > end > end > > require 'this_is_ok/this_is_already_a_chore' > > if This_is_ok::This_is_already_a_chore::Wow_I_have_no_feeling_left.in_my_hands? > puts "There must be an easier way than all this typing????" > end Use local vars or (scoped) contants? like_putty = This_is_ok::This_is_already_a_chore::Wow_I_have_no_feeling_left if like_putty.in_my_hands? ... end