A curious thing about modules

Well, I read on the help file that Modules have these attr_accessor, reader and writer methods (like in Classes which is inherits Module)... So I tried to define variables using the attr_accessor line, only to realize that it doesn't work...

example:

Code:
module Try  attr_accessor :rpg_makerendclass Game_Interpreter  def oh    #will return an error     #something like method rpg_maker doesn't exist for Module Try     return Try.rpg_maker  endend
So well, I'm just curious as to why it doesn't when the help file says that Modules have these attr_accessor... or was it because it was Module's "Private Methods"?
module Test


class << self


attr_accessor :a_test


end


end


msgbox Test.a_test
so I'll put every accessor inside that class << self block, and it will all work out fine? that's neat... the help file should have said that...
Try playing around with this:

Code:
module Try  attr_accessor :rpg_makerendclass Game_Interpreter  include Try  def oh    return rpg_maker  endend

Original thread: https://forums.rpgmakerweb.com/threads/a-curious-thing-about-modules.22690/