lib/dionysus/string.rb in dionysus-0.3.0 vs lib/dionysus/string.rb in dionysus-0.3.1
- old
+ new
@@ -6,9 +6,10 @@
#
# require 'dionysus/string'
class String
HEX_REGEXP = /^[a-f0-9]+$/
BASE64_REGEXP = /^[A-Za-z0-9\+\/\=]+$/
+ ENCODING_BITS_PER_CHAR = {:binary => 8, :base64 => 6, :hex => 4, :hexidecimal => 4}
##
# Encode the Base64 (without newlines)
def encode64s() Base64.encode64s(self); end