Module: Base64
- Defined in:
- lib/thefacebook/base64_extensions.rb
Class Method Summary collapse
Class Method Details
.decode64url(str) ⇒ Object
5 6 7 8 |
# File 'lib/thefacebook/base64_extensions.rb', line 5 def decode64url(str) str = str.ljust((str.size/6+1)*6,"=") if (str.size % 6) > 0 Base64.decode64(str.tr("-_", "+/")) end |