a self.method! returning a changing self attributes

U

Une Bévue

say, i've a class "Clazz" i've a method #revert_to_saved
who returns a revert to saved instance of Clazz BUT i want to implement
also
#revert_to_saved!

that is having all self attributes modified to the revert to saved
instance of Clazz at once...

then, how, could I modify self ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top