module AnyStyle::Data

Constants

ROOT
VERSION

Public Class Methods

setup() click to toggle source
# File lib/anystyle/data/setup.rb, line 5
def self.setup
  Dictionary.defaults[:source] = File.join(ROOT, 'dict.txt.gz')

  if defined? Dictionary::Marshal
    Dictionary::Marshal.defaults[:path] = File.join(ROOT, 'dict.marshal')
  end

  if defined? Dictionary::GDBM
    Dictionary::GDBM.defaults[:path] = File.join(ROOT, 'dict.db')
  end

  if defined? Dictionary::LDBM
    Dictionary::LDBM.defaults[:path] = ROOT
  end
end