Adds a second argument to encode_base64

git-svn-id: file:///home/svn/framework3/trunk@4618 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2007-04-02 06:23:14 +00:00
parent c6d5ac1968
commit 9333609211
1 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,8 @@ module Text
#
# Base64 encoder
#
def self.encode_base64(str)
[str].pack("m").gsub(/\s+/, '')
def self.encode_base64(str, delim='')
[str].pack("m").gsub(/\s+/, delim)
end
#