ryanlecompte (Ryan LeCompte)
- Login: ryanlecompte
- Email: lecompte@gmail.com
- Registered on: 03/29/2011
- Last sign in: 01/20/2012
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
01/20/2012
-
03:07 PM Ruby Bug #5912 (Closed): Interpreter crashes when trying to invoke implicit block via Binding#eval
- Here's how to reproduce the problem:
[1] pry(main)> def foo
[1] pry(main)* binding
[1] pry(main)* end
=> nil
[2] pry(main)> b = foo { puts 'hi!' }
=> #<Binding:0x007f8b7a0e2ec0>
[3] pry(main)> b.eval('Proc.new').call
(pry):...
03/29/2011
-
08:06 PM Ruby Bug #4537: Incorrectly creating private method via attr_accessor
- The following fails with a failure to call "`x=`" private method
```ruby
String.send(:attr_accessor, :x)
s = ""
s.x = 100
```
The following works:
```ruby
class String
self.send(:attr_accessor, :x)
end
s = ""
s.x = 10... -
08:04 PM Ruby Bug #4537 (Closed): Incorrectly creating private method via attr_accessor
- The following fails with a failure to call "`x=`" private method
```ruby
String.send(:attr_accessor, :x)
s = ""
s.x = 100
```
The following works:
```ruby
class String
self.send(:attr_accessor, :x)
end
s = ""
s.x = 10...