Module: Triphthong::Text
- Defined in:
- lib/triphthong/text.rb
Instance Method Summary collapse
Instance Method Details
#sentences ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/triphthong/text.rb', line 2 def sentences Enumerator.new do |yielder| SRX::Polish::SentenceSplitter.new(self).each do |sentence| yielder.yield Verse.new sentence.gsub(/\s+/, ' ').strip end end end |