I have a class where I create a new instance variable called @client which is an object in itself. Now, in another file I create an object from this class, but cannot access the methods of the @client object. How do I do?
example:
class A_Helper
def initialize
@client = Module::Client.new('info')
p @client
# <Module::Client:0x000000017fd018>
end
end
---------------------------
class A_Controller
@A_Helper = A_Helper.new
p @A_Helper.client
# <class:A_Controller>: undefined method `client' for nil:NilClass