lib/opulent/compiler.rb in opulent-1.0.4 vs lib/opulent/compiler.rb in opulent-1.0.7
- old
+ new
@@ -103,10 +103,10 @@
# appears and give indications on how to solve it
#
# @param context [Symbol] Context name in which the error happens
# @param data [Array] Additional error information
#
- def error(context, *data)
+ def self.error(context, *data)
message = case context
when :enumerable
"The provided each structure iteration input \"#{data[0]}\" is not Enumerable."
when :binding
data[0] = data[0].to_s.match(/\`(.*)\'/)