rubinius/rubinius — pull request #1968 by kachick (2012-10-21 07:22:53+00:00)
Title: Fix return value of visibility setters

Rubinius

* rubinius 2.0.0dev (1.9.3 release yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]

```ruby
class Foo
def foo; end
p private(:foo) #=> [:foo]
p protected(:foo) #=> [:foo]
p public(:foo) #=> [:foo]

p private #=> nil
p protected #=> nil
p public #=> nil
end

p private #=> nil
p public #=> nil
```

MRI

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

```ruby
class Foo
def foo; end
p private(:foo) #=> Foo
p protected(:foo) #=> Foo
p public(:foo) #=> Foo

p private #=> Foo
p protected #=> Foo
p public #=> Foo
end

p private #=> Object
p public #=> Object
```