Sha256: 3e6608a0ec1a7a2f31b653559c43176ff34952e02b4a5352ca0e87dcb400c4af
Contents?: true
Size: 280 Bytes
Versions: 2
Compression:
Stored size: 280 Bytes
Contents
require 'set' class Licensee module ContentHelper def create_word_set(content) return unless content content = content.dup content.downcase! content.gsub!(/^#{Matchers::Copyright::REGEX}$/i, '') content.scan(/[\w']+/).to_set end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
licensee-6.0.0 | lib/licensee/content_helper.rb |
licensee-6.0.0b1 | lib/licensee/content_helper.rb |