Module: LexicalUnits::String

Defined in:
lib/lexical_units/string.rb

Overview

Use lexical units inside String class

Instance Method Summary collapse

Instance Method Details

#sentencesObject



9
10
11
# File 'lib/lexical_units/string.rb', line 9

def sentences
  LexicalUnits.sentences(self)
end

#wordsObject



5
6
7
# File 'lib/lexical_units/string.rb', line 5

def words
  LexicalUnits.words(self)
end

#words_and_sentencesObject



13
14
15
# File 'lib/lexical_units/string.rb', line 13

def words_and_sentences
  LexicalUnits.words_and_sentences(self)
end

#words_without_digitsObject



17
18
19
# File 'lib/lexical_units/string.rb', line 17

def words_without_digits
  LexicalUnits.words_without_digits(self)
end