Current Path : /usr/local/share/ri/1.8/system/Base64/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/Base64/b64encode-i.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: <em>Prints</em> the Base64 encoded version of <tt>bin</tt> (a <tt>String</tt>) in lines of <tt>len</tt> (default 60) characters. - !ruby/struct:SM::Flow::VERB body: " require 'base64'\n data = "Now is the time for all good coders\\nto learn Ruby"\n Base64.b64encode(data)\n" - !ruby/struct:SM::Flow::P body: <em>Generates:</em> - !ruby/struct:SM::Flow::VERB body: " Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g\n UnVieQ==\n" full_name: Base64#b64encode is_singleton: false name: b64encode params: (bin, len = 60) visibility: public