lib/gematria.rb in gematria-0.0.4 vs lib/gematria.rb in gematria-0.0.5
- old
+ new
@@ -1,10 +1,14 @@
# -*- encoding : utf-8 -*-
require "gematria/version"
-require "gematria/tables"
+require "gematria/table_manager"
require "gematria/calculator"
+# A Ruby gem that calculates Gematria
module Gematria
+ # initialize TableManager
+ Tables = TableManager.new
+
# Add built-in tables
# applies "mispar hechrachi" method to English alphabet (http://www.inner.org/gematria/fourways.php)
Tables.add_table :english, {
'a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5, 'f' => 6, 'g' => 7, 'h' => 8, 'i' => 9,