* Michael Neumann (Feb 22, 2005 15:30):
> Why not simply define a has_value? method:

>   def has_value?(obj)
>     case obj
>     when Enumerable
>       !obj.empty?
>     when NilClass, FalseClass
>       false
>     when TrueClass
>       true
>     when Integer
>       !obj.zero?
>     else
>       # do what you want
>       obj.respond_to?(...)
>       ...
>     end
>   end

Well, False has the value, or perhaps valuation, false.  How about
Object#kinda_nilish?, giving it an informal name suggesting it's highly
informal nature?  It would have the reverse interpretation of your
method, though...
	nikolai (the comedian)

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}