lib/drb/http0helper.rb in uu-0.1.0 vs lib/drb/http0helper.rb in uu-0.1.1
- old
+ new
@@ -25,12 +25,12 @@
attr_reader :count
def disable
@mutex.synchronize do
- GC.disable
@count += 1
+ GC.disable
end
end
def enable
@mutex.synchronize do
@@ -47,8 +47,12 @@
end
end
def eval_(code)
instance_eval(code)
+ end
+
+ def klass(name)
+ eval_(name.to_s)
end
end
end