Class: Bramgem::Sentence
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.sentence ⇒ Object
4 5 6 |
# File 'lib/bramgem/sentence.rb', line 4 def self.sentence self.processed_source.sample end |
.sentences(n = 5) ⇒ Object
8 9 10 |
# File 'lib/bramgem/sentence.rb', line 8 def self.sentences(n=5) self.processed_source.sample(n) end |