A
aidy
Hi,
class Test
attr_writer :username, assword
def initialize
h = {:username => 'user', assword => 'pass'}
end
end
t = Test.new
p t.h[username]
I am trying to access a hash key after instantiating the Test class,
but I am having a slight problem.
Could someone please direct me?
Thanks
Aidy
class Test
attr_writer :username, assword
def initialize
h = {:username => 'user', assword => 'pass'}
end
end
t = Test.new
p t.h[username]
I am trying to access a hash key after instantiating the Test class,
but I am having a slight problem.
Could someone please direct me?
Thanks
Aidy