lib/caricature/descriptor.rb in caricature-0.6.3 vs lib/caricature/descriptor.rb in caricature-0.7.0

- old
+ new

@@ -59,10 +59,10 @@ # Describes a ruby object. class RubyObjectDescriptor < TypeDescriptor # collects all the members that are defined by this class def initialize_instance_members_for(klass) - @instance_members += klass.instance_methods(false).collect { |mn| MemberDescriptor.new(mn) } + @instance_members += (klass.instance_methods - Object.instance_methods).collect { |mn| MemberDescriptor.new(mn) } end # collects all the members that aren't a member of Object.singleton_methods def initialize_class_members_for(klass) @class_members += klass.methods(false).collect { |mn| MemberDescriptor.new(mn) } \ No newline at end of file