D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
self
/
root
/
opt
/
alt
/
ruby32
/
share
/
gems
/
doc
/
base64-0.3.0
/
ri
/
Base64
/
Filename :
decode64-i.ri
back
Copy
U:RDoc::AnyMethod[iI" decode64:ETI"Base64#decode64;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GReturns a string containing the decoding of an RFC-2045-compliant ;TI"-\Base64-encoded string +encoded_string+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"6s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" ;TI"@Base64.decode64(s) # => "This is line 1\nThis is line 2\n" ;T:@format0o; ; [I"=Non-\Base64 characters in +encoded_string+ are ignored; ;TI"bsee {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: ;TI"Othese include newline characters and characters <tt>-</tt> and <tt>/</tt>:;T@o;; [I")Base64.decode64("\x00\n-_") # => "" ;T; 0o; ; [I"@Padding in +encoded_string+ (even if incorrect) is ignored:;T@o;; [I"6Base64.decode64("MDEyMzQ1Njc") # => "01234567" ;TI"6Base64.decode64("MDEyMzQ1Njc=") # => "01234567" ;TI"5Base64.decode64("MDEyMzQ1Njc==") # => "01234567";T; 0: @fileI"lib/base64.rb;T:0@omit_headings_from_table_of_contents_below0I"5Base64.decode(encoded_string) -> decoded_string ;T0[ I" (str);T@$FI"Base64;TcRDoc::NormalModule00