class String

Public Instance Methods

unique_word() click to toggle source
# File lib/first_gem_joe.rb, line 8
def unique_word
  self.split.uniq
end
word_count() click to toggle source
# File lib/first_gem_joe.rb, line 4
def word_count
  self.split.count
end