class UUIDGen::NameSpace
Public Class Methods
new(target)
click to toggle source
# File lib/uuidgen/name_space.rb, line 3 def initialize(target) @decimal = target.gsub('-', '').hex end
Public Instance Methods
to_hexa_string()
click to toggle source
# File lib/uuidgen/name_space.rb, line 7 def to_hexa_string to_hex.chars.each_slice(2).map do |first, second| (first + second).hex.chr end.join end