lib/global.rb in runeblog-0.1.75 vs lib/global.rb in runeblog-0.1.76
- old
+ new
@@ -15,9 +15,11 @@
class Post
end
end
+# Refactor, move stuff elsewhere?
+
def make_exception(sym, str)
return if Object.constants.include?(sym)
Object.const_set(sym, StandardError.dup)
define_method(sym) do |*args|
msg = str