Skip to content
Browse files

Missed one learn, upgrade to new syntax.

  • Loading branch information...
1 parent 5ade3de commit f98db569bc9c70d0c96c1c95256334e97803a798 @cmeiklejohn committed Sep 2, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/watchmaker/learner.rb
View
4 lib/watchmaker/learner.rb
@@ -8,7 +8,7 @@ module ClassMethods
# Learn a profile by taking explicit dependencies.
#
- def learn(name, dependencies = {}, &block)
+ def define(name, dependencies = {}, &block)
if name.is_a?(Hash)
@@ -28,6 +28,8 @@ def learn(name, dependencies = {}, &block)
Configuration.learn(name, dependencies, &block)
end
+ alias :learn :define
+
# Get the profile name out of a dependency hash.
#
def name_and_dependencies_from_dependency_hash(dependencies)

0 comments on commit f98db56

Please sign in to comment.
Something went wrong with that request. Please try again.