rubinius/rubinius — pull request #2107 by rf- (2012-12-28 08:10:36+00:00)
Title: Fixnum#public_methods raises TypeError

```
~ ruby --version
rubinius 2.0.0.rc1 (1.8.7 8c11e951 yyyy-mm-dd JI) [x86_64-apple-darwin12.2.1]
~ ruby -e '10.public_methods'
An exception occurred evaluating command line code
no singleton class available for a Fixnum (TypeError)

Backtrace:
Rubinius::Type.object_singleton_class at kernel/bootstrap/type.rb:23
Kernel(Fixnum)#public_singleton_methods at kernel/common/kernel.rb:511
Kernel(Fixnum)#public_methods at kernel/common/kernel.rb:507
{ } in Object#__script__ at -e:1
Rubinius::BlockEnvironment#call_on_instance at kernel/common/block_environment.rb:75
Kernel(Rubinius::Loader)#eval at kernel/common/eval.rb:75
Rubinius::Loader#evals at kernel/loader.rb:584
Rubinius::Loader#main at kernel/loader.rb:815
```

The same thing happens in 1.9 mode. `methods`, `private_methods`, and `protected_methods` work fine.