lib/dionysus/string.rb in dionysus-0.2.0 vs lib/dionysus/string.rb in dionysus-0.2.1
- old
+ new
@@ -18,13 +18,13 @@
# Decode from Base 64
def decode64() Base64.decode64(self); end
##
# Encode to hexidecimal
- def encodeHexidecimal() self.unpack('H*').first; end
- alias_method :encodeHex, :encodeHexidecimal
+ def encode_hexidecimal() self.unpack('H*').first; end
+ alias_method :encode_hex, :encode_hexidecimal
##
# Decode from hexidecimal
- def decodeHexidecimal() [self].pack('H*'); end
- alias_method :decodeHex, :decodeHexidecimal
+ def decode_hexidecimal() [self].pack('H*'); end
+ alias_method :decode_hex, :decode_hexidecimal
end