lib/plagiarism/strategy.rb in plagiarism2-0.0.4 vs lib/plagiarism/strategy.rb in plagiarism2-0.0.5

- old
+ new

@@ -7,10 +7,10 @@ module Plagiarism module Strategy extend self def get(name = :google) - Strategies.const_get(name.to_s.classify) + Strategies.const_get(name.to_s.sub(/\S/, &:upcase)) end def unique?(content, params) Config.strategies.all? do |strategy| klass = get(strategy)