spacepaste
new
Paste details
reply
|
raw
class
Person
def
id
@id
||=
(
Array
.
new
(
10
)
+
[
1
,
2
,
3
]
)
.
sample
end
end
# how to run a loop until a get a person that has a non nil id?