def get_methods_for(klass, full=false)
klass = self.get_class(klass) if klass.kind_of? String
public_methods = klass.public_instance_methods(false)
klass_methods = klass.singleton_methods(full)
klass_methods -= Class.public_methods(true)
klass_methods -= %w(suite new)
klass_methods = klass_methods.map { |m| "self." + m }
public_methods += klass_methods
public_methods -= Kernel.methods unless full
public_methods -= %w(pretty_print pretty_print_cycle)
klassmethods = {}
public_methods.each do |meth|
puts "# found method #{meth}" if $DEBUG
klassmethods[meth] = true
end
return klassmethods
end