Sha256: f434e1eadd82377bd2194aac05f969a2366fe1a182b0b21d76fcdd484f0f235e

Contents?: true

Size: 206 Bytes

Versions: 10

Compression:

Stored size: 206 Bytes

Contents

class Unidom::Common::Numeration

  def self.hex(data)
    data.present? ? data.unpack('H*')[0] : nil
  end

  def self.rev_hex(hex)
    hex.present? ? hex.scan(/../).map(&:hex).pack('c*') : nil
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
unidom-common-1.8 lib/unidom/common/numeration.rb
unidom-common-1.7.2 lib/unidom/common/numeration.rb
unidom-common-1.7.1 lib/unidom/common/numeration.rb
unidom-common-1.7 lib/unidom/common/numeration.rb
unidom-common-1.6 lib/unidom/common/numeration.rb
unidom-common-1.5 lib/unidom/common/numeration.rb
unidom-common-1.4 lib/unidom/common/numeration.rb
unidom-common-1.3 lib/unidom/common/numeration.rb
unidom-common-1.2 lib/unidom/common/numeration.rb
unidom-common-1.1 lib/unidom/common/numeration.rb