class String
Public Instance Methods
unique_words()
click to toggle source
# File lib/first_gem_better_carl.rb, line 8 def unique_words self.split.uniq end
unique_words_count()
click to toggle source
# File lib/first_gem_better_carl.rb, line 12 def unique_words_count self.split.uniq.count end
word_count()
click to toggle source
# File lib/first_gem_better_carl.rb, line 4 def word_count self.split.count end