rubinius/rubinius — pull request #2005 by kachick (2012-11-11 16:39:54+00:00)
Title: Kernel#public_methods contains protected methods 

## Example

```ruby
obj = Object.new

class << obj
def obj_public; end
protected; def obj_protected; end
end

obj.public_methods.grep(/^obj_/).map(&:to_sym)
```

## Result

On rvm 1.16.15 and irb

### MRI

* ruby 2.0.0dev (2012-10-12) [x86_64-linux]
* ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
* ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]

```ruby
[:obj_public]
```

### Rubinius

* rubinius 2.0.0rc1 (1.9.3 release 2012-11-02 JI) [x86_64-unknown-linux-gnu]
* rubinius 2.0.0rc1 (1.8.7 release 2012-11-02 JI) [x86_64-unknown-linux-gnu]

```ruby
[:obj_public, :obj_protected]
```