From: linkin_t Date: 2007-10-31T02:01:59+09:00 Subject: Re: Check if a parameter is a constant or an object? ------=_Part_822_5427405.1193763701219 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline arg.is_a?(Class) || arg.is_a?(Module) ? "class/module" : "object/number/whatever" 2007/10/30, Joshua Muheim : > > Hi all > > def some_method(arg) > # How do I check here if arg is a constant or an object? > end > > Thanks :-) > Josh > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_822_5427405.1193763701219--