Null object: Difference between revisions

(J: attempt to more adequately describe how we fill in the holes in the description of holes as represented in the language)
Line 1,003:
 
=={{header|Ruby}}==
The value when referring to the instance variable which isn't initialized is nil.
<lang ruby>
<lang ruby>puts "@object is nullnil" if @object.nil?</lang>
{{out}}
</lang>
<pre>
@object is nil
</langpre>
 
=={{header|Scala}}==
Anonymous user