lib/porolog/scope.rb in porolog-0.0.1 vs lib/porolog/scope.rb in porolog-0.0.2
- old
+ new
@@ -52,11 +52,10 @@
def [](name)
@predicates[name.to_sym]
end
def []=(name,predicate)
- # TODO: Uncomment when Porolog::Predicate has been added.
- #raise NotPredicateError.new("#{predicate.inspect} is not a Predicate") unless predicate.is_a?(Predicate)
+ raise NotPredicateError.new("#{predicate.inspect} is not a Predicate") unless predicate.is_a?(Predicate)
@predicates[name.to_sym] = predicate
end
def predicates
@predicates.values