class PseudoEntity::Randoms::RandomSlogans

Public Class Methods

new(slogan_patterns, adjectives, nouns) click to toggle source

slogan_patterns.product(adjectives).product(nouns).map { |x| x[0] % [x[1], x] }

Calls superclass method
# File lib/pseudo_entity/randoms.rb, line 846
def initialize(slogan_patterns, adjectives, nouns)
  subjects = HugeProduct.new(adjectives, nouns)
  super(slogan_patterns, subjects)
end

Public Instance Methods

fetch(x) click to toggle source
Calls superclass method
# File lib/pseudo_entity/randoms.rb, line 851
def fetch(x)
  slogan = super(x)
  slogan.first % slogan.last
end