Module: Licensee::ContentHelper
- Included in:
- License, Project::LicenseFile
- Defined in:
- lib/licensee/content_helper.rb
Instance Method Summary collapse
Instance Method Details
#create_word_set(content) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/licensee/content_helper.rb', line 5 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 |