lib/l33tify.rb in l33tify-0.0.1 vs lib/l33tify.rb in l33tify-0.0.2

- old
+ new

@@ -1,10 +1,10 @@ require "l33tify/version" module L33tify l33t_replacements = {i: '1', r: '2', e: '3', a: '4', s: '5', t: '7', o: '0'} - def process(str) + def self.process(str) str = str.downcase new_string = '' str.each_char do |c| if l33t_replacements[c.to_sym].nil? == false new_string += l33t_replacements[c.to_sym]