Random Ruby Tricks: Class.new http://blog.steveklabnik.com/posts/2012-09-09-random-ruby-tricks--class-new …
-
-
@steveklabnik I'm pretty sure activerecord uses it for records that it gets back from the database.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik nope, I'm wrong, they must have changed that. it's still used with STI, thoughThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik here's where rails 2.3 used it: https://github.com/rails/rails/blob/2-3-stable/activerecord/lib/active_record/base.rb#L1651-1695 … finders would intantiate records via itThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik and also useful when you're hacking stuff in irb or something that want to avoid initialize on an objectThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik @fowlduck Perhaps. Depends on how ruby impl allocates memory. Could be good to reduce fragmentation or alter performance.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik @fowlduck perhaps similarly to allocating a lot of heap at once in C: memory allocation takes time.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.