Module: Stack::Filters::String

Includes:
Register
Defined in:
lib/stack/filters/string.rb

Instance Method Summary collapse

Methods included from Register

extensions, included, invoke_filter

Instance Method Details

#count_words(input) ⇒ Object



6
7
8
# File 'lib/stack/filters/string.rb', line 6

def count_words(input)
  input.split.length
end