Skip to content

Instantly share code, notes, and snippets.

@ultraspeed
Created September 22, 2009 20:27
Show Gist options
  • Save ultraspeed/191399 to your computer and use it in GitHub Desktop.
Save ultraspeed/191399 to your computer and use it in GitHub Desktop.
raise ArgumentError, "Registration type is not 'registration'" unless registration?
raise ArgumentError, "TLD does not support automatic registrations" unless supports_automatic_registrations?
raise ArgumentError, "Contact information is invalid" unless contact_information_valid?
if registration_complete?
toggle!(:processed)
else
return false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment