On Mon, 28 Feb 2005 12:11:21 +0900, Eko Budi Setiyo
<contact_us / haltebis.com> wrote:
> Any body now how to do some thing like this in ruby
> 
> is_class_defined?
> is_module_defined?
> is_methode_defined?

  def foo; end
  defined?(foo) # => "method"

Both of the following return "constant."

  class Foo; end
  module Bar; end
  defined?(Foo) # => "constant"
  defined?(Bar) # => "constant"

-austin
-- 
Austin Ziegler * halostatue / gmail.com
               * Alternate: austin / halostatue.ca