Top Level Namespace
Defined Under Namespace
Classes: FeedYamlizer, String
Instance Method Summary collapse
Instance Method Details
#word_count(string) ⇒ Object
63 64 65 |
# File 'lib/feed_yamlizer/html_cleaner.rb', line 63 def word_count(string) string.gsub(%{</?[^>]+>}, '').split(/\s+/).size end |