lib/unextendable/module.rb in unextendable-0.1.6 vs lib/unextendable/module.rb in unextendable-0.1.7
- old
+ new
@@ -1,6 +1,12 @@
class Module
+ def my_methods(include_private = true)
+ public_instance_methods.tap do |methods|
+ return methods + private_instance_methods + protected_instance_methods if include_private
+ end
+ end
+
def unextendable
@unextendable = true
end
def unextendable?
\ No newline at end of file