lib/vindetta/transliterator.rb in vindetta-0.5.0 vs lib/vindetta/transliterator.rb in vindetta-0.6.0
- old
+ new
@@ -2,10 +2,10 @@
class Transliterator
MAPPING = '0123456789.ABCDEFGH..JKLMN.P.R..STUVWXYZ'.split('').freeze
def self.run(character)
index = MAPPING.find_index(character)
- raise Vindetta::InvalidCharacter.new(character) unless index
+ raise Vindetta::InvalidCharacter, character unless index
index % 10
end
end
end