Sha256: 964f8722bddbe9a1fadd83e698d84b63c0542f4826c2998979a4b364c08a522d

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

module Auxilium
  class UuidModifier
    class << self

      def minimize(uuid)
        uuid.delete('-')
      end

      def append(uuid, value)
        "#{minimize(uuid)}/#{value}"
      end

      def reconstitute(id)
        "#{id[0..7]}-#{id[8..11]}-#{id[12..15]}-#{id[16..19]}-#{id[20..31]}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auxilium-3.0.31 lib/auxilium/uuid_modifier.rb
auxilium-3.0.30 lib/auxilium/uuid_modifier.rb
auxilium-3.0.24 lib/auxilium/uuid_modifier.rb