E
Eric Mahurin
This is be best I could come up with for determining whether an
object is an immediate (Fixnum, Symbol, false, true, nil,
others?):
begin
obj.clone
# clone worked - not an immediate
rescue TypeError
# clone failed - immediate
end
Anybody have a better way? If the above is the best, seems
like an Object#immediate? would be nice to have.
=09
__________________________________=20
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
object is an immediate (Fixnum, Symbol, false, true, nil,
others?):
begin
obj.clone
# clone worked - not an immediate
rescue TypeError
# clone failed - immediate
end
Anybody have a better way? If the above is the best, seems
like an Object#immediate? would be nice to have.
=09
__________________________________=20
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com