Skip to content
Browse files

fixed order

  • Loading branch information...
1 parent db7b8aa commit e33df9109f7ce8f72a2df01be1fa4a8d12329b71 @joshbuddy committed Mar 1, 2010
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/anybase.rb
View
11 lib/anybase.rb
@@ -1,11 +1,6 @@
class Anybase
UnrecognizedCharacterError = Class.new(RuntimeError)
- Hex = Anybase.new('0123456789abcdef', :ignore_case => true)
- Base62 = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')
- Base64 = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')
- Base64ForURL = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_')
- Base73ForURL = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$-_.+!*\'(),')
attr_reader :chars, :char_map, :num_map
@@ -53,4 +48,10 @@ def add_mapping(c, i)
end
private :add_mapping
+ Hex = Anybase.new('0123456789abcdef', :ignore_case => true)
+ Base62 = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')
+ Base64 = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')
+ Base64ForURL = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_')
+ Base73ForURL = Anybase.new('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$-_.+!*\'(),')
+
end

0 comments on commit e33df91

Please sign in to comment.
Something went wrong with that request. Please try again.