class String
Public Instance Methods
unique_word_count()
click to toggle source
# File lib/first_gem_libby.rb, line 10 def unique_word_count unique_words.count end
unique_words()
click to toggle source
# File lib/first_gem_libby.rb, line 7 def unique_words self.split.uniq end
word_count()
click to toggle source
# File lib/first_gem_libby.rb, line 4 def word_count self.split.count end