Except you also don't have the brackets to keep things organized.
def save = File.write(name, self.to_yaml) unless invalid?
def save = File.write(name, self.to_yaml) if valid?
Except you also don't have the brackets to keep things organized.