lib/finite.rb in finite-0.0.1 vs lib/finite.rb in finite-1.0.0
- old
+ new
@@ -1,5 +1,19 @@
-require 'finite/version'
+[
+ 'version',
+ 'transition',
+ 'event',
+ 'state',
+ 'machine',
+ 'class_methods',
+ 'finite'
+].each { |file| require File.join(File.dirname(__FILE__), 'finite', file) }
+# The Finite module. The module that contains all the classes and methods for
+# the finite gem.
module Finite
- # Your code goes here...
-end
+ # Override included method
+ def self.included(base)
+ base.extend(ClassMethods)
+ super
+ end
+end
\ No newline at end of file