R
Roy Patrick Tan
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"?
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"?