evilbrain (Andy Bogdanov)
- Login: evilbrain
- Email: andy.bogdanov@gmail.com
- Registered on: 07/18/2009
- Last sign in: 05/06/2011
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
03/14/2011
-
11:35 PM Ruby Bug #4502 (Closed): strange Module.new behaviour
- =begin
First I create a proc:
p = proc {
self::X = Class.new
def self.X
X.new
end
}
Then I create a module:
A = Module.new(&p)
puts A.X # => #<A::X:0x9c2e774>
Then I create another module:
B = Module.new(&p...
07/18/2009
-
06:27 PM Ruby Feature #1786 (Closed): unexpected #inspect behaviour
- =begin
It's said in the documentation that #inspect, if not overridden should use #to_s. Instead of that, when not overridden, #inspect uses #to_s only until the first instance variable assignment, after that it is overridden by interpr...