Method: WordCountAnalyzer::Xhtml#occurrences
- Defined in:
- lib/word_count_analyzer/xhtml.rb
#occurrences ⇒ Object
22 23 24 |
# File 'lib/word_count_analyzer/xhtml.rb', line 22 def occurrences string.gsub(XHTML_REGEX, ' wsxhtmlword ').scan(/wsxhtmlword/).size / 2 end |