lib/bogus/class_methods.rb in bogus-0.1.0 vs lib/bogus/class_methods.rb in bogus-0.1.1

- old
+ new

@@ -2,11 +2,11 @@ class ClassMethods extend Takes takes :klass def all - klass.methods - Class.methods + klass.methods - Class.methods - bogus_methods end def get(name) klass.method(name) end @@ -15,8 +15,14 @@ klass.instance_eval "undef #{name}" end def define(body) klass.instance_eval(body) + end + + private + + def bogus_methods + [:__shadow__, :__reset__, :__overwrite__, :__overwritten_methods__, :__record__] end end end