Method: String#words

Defined in:
lib/extra/string.rb

#wordsObject

Get an array of “words”.

Example: "hello, world!".words #=> ["hello", "world"]

Returns: Array



195
196
197
# File 'lib/extra/string.rb', line 195

def words
	scan(/\w+/u)
end