module HexString

Public Instance Methods

from_hex_string() click to toggle source
# File lib/refined_hex.rb, line 7
def from_hex_string
  [self].pack('H*')
end
to_hex_string() click to toggle source
# File lib/refined_hex.rb, line 3
def to_hex_string
  self.chars.map { |x| x.unpack('H*') }.join
end