A self.method! returning a changing self attributes

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 ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs