...probably not the *best* way, but this works:

  class A
  def initialize(arg = "NO ARGUMENT")
    if arg == "NO ARGUMENT"
      puts "no argument given"
    else
      puts arg
    end
  end
  end

  A.new
  A.new("foo")

  => no argument given
  => foo



  - j

-- 
Posted via http://www.ruby-forum.com/.