module ShinyWookie
Constants
- VERSION
Public Class Methods
gabbler()
click to toggle source
# File lib/shiny_wookie.rb, line 18 def self.gabbler if @gabbler.nil? @gabbler = Gabbler.new story_file = File.join(File.dirname(File.expand_path(__FILE__)), '../resources/huckleberry.txt') story = File.read(story_file) gabbler.learn story end @gabbler end
generate_documents(amount = 1)
click to toggle source
# File lib/shiny_wookie.rb, line 6 def self.generate_documents amount = 1 documents = [] return [] if amount.to_i < 1 1.upto amount.to_i do documents << Document.new end documents end