blob: 4030ad358a6fea0fab4ccb836a7874bcac160d42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# a stupid hack class to get rid of all of the warnings but
# still make the encode/decode methods available
# 1.8.2 has a Base64 class, but 1.8.1 just imports the methods directly
# into Object
require 'base64'
unless defined? Base64
class Base64
def Base64.encode64(*args)
Object.method(:encode64).call(*args)
end
def Base64.decode64(*args)
Object.method(:decode64).call(*args)
end
end
end
|