Method: Oboe::Util::Base64URL.decode
- Defined in:
- lib/oboe/loading.rb
.decode(bin) ⇒ Object
21 22 23 24 25 |
# File 'lib/oboe/loading.rb', line 21 def decode(bin) m = bin.size % 4 bin += '=' * (4 - m) if m != 0 bin.tr('-_', '+/').unpack('m0').first end |