Sha256: 38dd10d6d47afd3cb8f55d8e4056bf8e865233e1ae3e930e22439c4ebb5fc69e
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'rubygems' require 'activesupport' $KCODE = 'u' require 'random_text/random_text' require 'random_text/random_strings' module RandomText VERSION = '0.0.6.2' def self.add_dictionary(path) const_name = File.basename(path, File.extname(path)).classify self.const_set(const_name, RandomText.new(File.read(path))) end end Dir.glob(File.join(File.dirname(__FILE__), '..', 'resources', '*.txt')) do |path| RandomText.add_dictionary(path) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
random_text-0.0.6.5 | lib/random_text.rb |
random_text-0.0.6.2 | lib/random_text.rb |
random_text-0.0.6.3 | lib/random_text.rb |
random_text-0.0.6.4 | lib/random_text.rb |