Libraries
»
stack
(0.0.7)
»
Index
»
Stack
»
Filters
»
String
»
#count_words
Method: Stack::Filters::String#count_words
Defined in:
lib/stack/filters/string.rb
#
count_words
(input) ⇒
Object
6 7 8
# File 'lib/stack/filters/string.rb', line 6
def
count_words
(
input
)
input
.
split
.
length
end