lib/egn.rb in egn-0.2.0 vs lib/egn.rb in egn-0.4.0

- old
+ new

@@ -1,22 +1,27 @@ require "date" -require "egn/generator" +require "egn/egn" require "egn/parser" require "egn/validator" +require "egn/generator" require "egn/version" +require "egn/util" module Egn - def self.generate - Generator.egn + # Quick generate: returns a new number + def self.generate(options={}) + Generator.generate(options) end + # Quick validate def self.validate(egn) - Validator.egn(egn) + Validator.validate(egn) end + # Quick parse def self.parse(egn) - Parser.new(egn) + Egn.new(egn) end end