class method
self.parse
Ruby on Rails 1.0.1
Last seen in v1.3.0Signature
self.parse(gid, options = {})
No documentation comment.
Parameters
-
gidreq -
optionsopt = {}
Source
# File lib/global_id/global_id.rb, line 26
def parse(gid, options = {})
gid.is_a?(self) ? gid : new(gid, options)
rescue URI::Error
parse_encoded_gid(gid, options)
end
Defined in lib/global_id/global_id.rb line 26
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in GlobalID