Skip to content

chills42/refined_hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages