From: jake kaiden Date: 2011-10-14T22:07:15+09:00 Subject: Re: What’s the best way of checking if an argument has been given or not? ...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/.