Welcome To Snipplr


You searched for: http

Everyone's Recent Ruby Snippets



1 2 Next »
used to remove unnecessary duplication of code. Code is from Jamis Buck (http://weblog.jamisbuck.org/2007/1/24/object-with_options)
1 972 posted 18 years ago by andyh
Rails builds on the standard Ruby observer, so you can too. Originally found at http://rails.techno-weenie.net/forums/1/topics/672?page=6, so don't give me any credit ;)
2 942 posted 18 years ago by stuckinrealtime
Simple HTTP server daemon (webrick).
1 1072 posted 18 years ago by ishikawa
A fairly DRY way to test for required attributes of a model. It's sort of an alternative to fixtures. It breaks the one-assertion-per-test rule that some people favor. Drop in your unit test and edit as necessary. A better (yet not quite perfect)...
3 1250 posted 19 years ago by tjstankus
reference: \n http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html
7 1457 posted 2025 years ago by aravet
1 2 Next »