class Poser::Sentence

Public Class Methods

create(count) click to toggle source
# File lib/poser/sentence.rb, line 9
def self.create(count)
  output = []
  count.times do 
    output.push(Sentence.new)
  end
  output
end
new() click to toggle source
# File lib/poser/sentence.rb, line 4
def self.new
  sentences = ["I like to #{p.verb} my #{p.noun}. ", "I #{p.verb} my #{p.noun}. ", "I #{p.verb} a very #{p.adj} #{p.noun}. ", "I hate when my #{p.noun} #{p.verb}s my #{p.noun}. ", "When I #{p.verb} my #{p.noun}, my #{p.noun} becomes #{p.adj}. "]
  sentences.sample
end