class String
Public Instance Methods
word_count(options = {})
click to toggle source
# File lib/count_words/word_count.rb, line 2 def word_count(options = {}) options = {method: :string_split}.merge(options) case options[:method] when :string_split self.split.size else raise NotImplementedError, "That method is not implimented yet" end end