Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always returning boolean when calling object.meta_class?

  • Loading branch information...
commit ae7c9e7649d1b4eab331736a03ead57f99a28993 1 parent 713d6f1
Paul Engel authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 CHANGELOG.rdoc
  2. +1 −1  lib/unextendable/object.rb
View
4 CHANGELOG.rdoc
@@ -1,5 +1,9 @@
= Unextendable CHANGELOG
+== Version 0.1.3 (May 2, 2011)
+
+* Always returning boolean when calling object.meta_class?
+
== Version 0.1.2 (May 2, 2011)
* Improved object_instance.unextend
View
2  lib/unextendable/object.rb
@@ -9,7 +9,7 @@ class << self
alias :singleton_class :meta_class
def meta_class?
- meta_class rescue false
+ !!(meta_class rescue false)
end
alias :singleton_class? :meta_class?
Please sign in to comment.
Something went wrong with that request. Please try again.