Skip to content

Instantly share code, notes, and snippets.

@akatz
Created July 31, 2008 19:31
Show Gist options
  • Save akatz/3508 to your computer and use it in GitHub Desktop.
Save akatz/3508 to your computer and use it in GitHub Desktop.
1241 def validate
1242 if self.scheme != nil &&
1243 (self.host == nil || self.host == "") &&
1244 (self.path == nil || self.path == "")
1245 raise InvalidURIError,
1246 "Absolute URI missing hierarchical segment."
1247 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment