Module: WordsCounted

Defined in:
lib/words_counted.rb,
lib/words_counted/counter.rb,
lib/words_counted/version.rb

Defined Under Namespace

Classes: Counter

Constant Summary collapse

VERSION =
"0.1.5"

Class Method Summary collapse

Class Method Details

.count(string, options = {}) ⇒ Object



11
12
13
# File 'lib/words_counted.rb', line 11

def self.count(string, options = {})
  Counter.new(string, options)
end

.from_file(path, options = {}) ⇒ Object



15
16
17
# File 'lib/words_counted.rb', line 15

def self.from_file(path, options = {})
  Counter.from_file(path, options)
end