Class: Poser::Sentence

Inherits:
Object
  • Object
show all
Defined in:
lib/poser/sentence.rb

Class Method Summary collapse

Class Method Details

.create(count) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/poser/sentence.rb', line 9

def self.create(count)
  output = []
  count.times do 
    output.push(Sentence.new)
  end
  output
end

.newObject



4
5
6
7
# 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