lib/porolog/scope.rb in porolog-0.0.8 vs lib/porolog/scope.rb in porolog-1.0.0

- old
+ new

@@ -71,10 +71,10 @@ # Assigns a Predicate to the Scope by its name. # @param name [Object] the name (or otherwise object) used to register a scope. # @param predicate [Porolog::Predicate] a Predicate to be assigned to the Scope. # @return [Porolog::Predicate] the Predicate assigned to the Scope. # @raise [NotPredicateError] when provided predicate is not actually a Predicate. - def []=(name,predicate) + def []=(name, predicate) raise NotPredicateError, "#{predicate.inspect} is not a Predicate" unless predicate.is_a?(Predicate) @predicates[name.to_sym] = predicate end # Returns the Predicates contained in the Scope.