--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Prints the Base64 encoded version of bin (a String) in lines of len (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: Generates:
- !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