From: Love U Ruby Date: 2013-03-13T19:10:48+09:00 Subject: Re: Confusion with some Module methods. C:\>irb --simple-prompt --noecho >> module A >> NAME = "Ayan" >> end >> module B >> AGE = 24 >> include A >> end >> p B.include?(A) true >> B::NAME >> p B::NAME "Ayan" >> B.constants(:true) >> p B.constants(:true) [:AGE, :NAME] >> p B.constants(:false) [:AGE, :NAME] Both ``B.constants(:true)` and `B.constants(:false)` has shown the same output as i passed to them symbols which method couldn't reslove as it is the design. I understood. But my question is there any way by which I can test if the method can recognize the symbol as its argument or not in advance? asked it out of curiosity. >> p B.constants(false) [:AGE] >> -- Posted via http://www.ruby-forum.com/.