Subject: clearing a parameter in Ruby?
From: Roy Patrick Tan <rtan vt.edu>
Date: Tue, 5 Aug 2003 02:36:32 +0900
Hi,
is it possible to write a method that can "clear" a parameter in Ruby?
That is can a write a method "push" such that for the code below:
x = "Hello"
string_stack.push(x)
puts x
the output will be nil instead of "Hello"?