app/controllers/anoubis/core/application_controller.rb
##
# Encodes string UUID data into the binary UUID
# @param data [Binary] string representation of UUID
# @return [Binary, nil] binary representation of UUID or nil if can't be encoded
Encodes string UUID data into the binary UUID
Encodes string UUID data into the binary UUID
def uuid_to_bin(data)
    begin
      return [data.delete('-')].pack('H*')
    rescue
      return nil
    end
  end
def uuid_to_bin ( data ) begin return [ data . delete ( '-' ) ] . pack ( 'H*' ) rescue return nil end end
Encodes string UUID data into the binary UUID
Encodes string UUID data into the binary UUID
binary representation of UUID or nil if can't be encoded
binary representation of UUID or nil if can ' t be encoded
Binary, nil
data
string representation of UUID
string representation of UUID