lib/turf/lookup.rb in turf-0.0.5 vs lib/turf/lookup.rb in turf-1.0.0
- old
+ new
@@ -2,10 +2,10 @@
def find(message)
lookup_path.each do |obj|
return obj.send(message) if obj.respond_to?(message)
end
- raise "The #{message} method could not be found in any of these Turf configuration classes: #{classes.join(", ")}"
+ raise NoMethodError, "The #{message} method could not be found in any of these Turf configuration classes: #{classes.join(", ")}"
end
private
def lookup_path