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