Displaying 1 result from an estimated 1 matches for "jeoen".
Did you mean:
jeroen
2006 Feb 01
8
ruby equivalent of isset()
Hi,
Is there a way to test if a certain (local) variable has been initialized?
I''d like to do something like
if isset(myvar) and myvar.true?
#some code
else
#default behaviour
end
I have a lot of shared views that I call with params such as {
show_pager => true
Instead of having to explicitly say show_pager => false it should be
possible to make false a default value, right?