Random Ruby Tricks: Struct.new http://blog.steveklabnik.com/posts/2012-09-01-random-ruby-tricks--struct-new …
-
-
@steveklabnik@jeg2 From checking the conversation, I think@evanphx didn't dislike the "<", but using Structs if it's not a data container. -
@henrik@steveklabnik@jeg2 I was disliking using it as a superclass, esp for the reason you did with your coworker.
End of conversation
New conversation -
-
-
@steveklabnik@jeg2@evanphx The other day a colleague did "< Struct…" only to avoid typing the initializer, in some typical model. Not OK.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.