iluvruby
Using Enumerable::inject to modify a hash
27 days ago by pogodan on iluvruby.
rubyquicktips: Ever wanted to modify the keys and values of a Hash? Enumerable::inject has you covered. Try this snippet from Stack Overflow: my_hash...
New Relic
28 days ago by pogodan on iluvruby.
Install New Relic into your application and get a free RC Helicopter....
View source of a method in IRB
6 months ago by pogodan on iluvruby.
There is an awesome gem called method_source (used internally in pry).Example: Set.instance_method(:merge).source.display # => def merge(enum) if enum...
Google Chrome extension for iluvruby released!
7 months ago by pogodan on iluvruby.
Google Chrome extension for iluvruby blog is out!!! Latest iluvruby posts now just one click away: Check it out on Github ...
Excellent introduction to AMQP
7 months ago by pogodan on iluvruby.
Michael Klishin - AMQP model explained...
Convert object to array
7 months ago by pogodan on iluvruby.
Have you ever been in a situation where you needed a method that does the following: Converts nil to an empty array Converts non-array variable n to [nLeaves...
Disabling transactions in single rspec test (describe block)
7 months ago by pogodan on iluvruby.
In rspec tests in which you have more than one database connection, uncommitted changes made using one connection are visible only through that connection...
Add me on Google+
8 months ago by pogodan on iluvruby.
Google+ so far impressed me. Feel free to add me or post a comment with your email if you need an invitation....
Ruby Symbols Stay in Memory
8 months ago by pogodan on iluvruby.
In ruby, symbols never get garbage collected. They stay in memory until the process exits. Get all the symbols in memory with the following command: Symbol...
Ruby objects to go: Copyrb - Gem for copying and pasting ruby objects
~1 year ago by pogodan on iluvruby.
I have written a quick gem that allows you to copy and paste ruby objects across terminals. This gem has been created primarily to simplify the process...
