module RUUID::Parser

@private

Constants

FORMAT

Public Instance Methods

parse(string) click to toggle source
# File lib/ruuid/parser.rb, line 8
def parse(string)
  if string[FORMAT]
    [string.gsub(/\H/, '')].pack('H*')
  else
    string
  end
end