lib/spiker.rb in spiker-0.1.0 vs lib/spiker.rb in spiker-0.1.1
- old
+ new
@@ -2,6 +2,10 @@
require_relative "spiker/version"
module Spiker
class Error < StandardError; end
+
+ def self.classify(str)
+ str.split(/[^A-Za-z0-0]/).map(&:capitalize).join
+ end
end