0.0
No commit activity in last 3 years
No release in over 3 years
A tiny gem providing a refinement for converting to and from hex-encoding
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme

Refined Hex

This gem provides string encoding methods as refinements. This allows for easy translation between a basic string and a version that has been re-encoded as a hex string.

Usage

require 'refined_hex'

module Example
  using HexString # the hex methods are now available in lexical scope

  def self.show_both_versions(message)
    puts "input: #{message}",
         "to: #{message.to_hex_string}",
         "from: #{message.from_hex_string}"
  end
end