Online ruby Programming useful website links

1. Ruby http://tryruby.org2. Hpricot http://hpricot.com3. Regular expressions http://rubular.com4. Exceptions http://hoptoadapp.com/5. Application Performance http://newrelic.com6. Ruby Doc http://www.ruby-doc.org/7. Rails API http://api.rubyonrails.org/8. Ruby gems sources http://rubyforge.org / http://gems.github.com / http://gemcutter.org9. Listing remote gems from source gem list –remote –source http://gems.github.com10. List of Rails Plugins http://wiki.rubyonrails.org/rails/pages/Pluginshttp://www.agilewebdevelopment.com/plugins

Dynamic creation of variables in ruby

1. To create local variables in ruby dynamically. Use eval method in ruby ree-1.8.7-2010.01 > eval(“local=4”)  => 4  ree-1.8.7-2010.01 > p local 4 ree-1.8.7-2010.01 > eval(“local_#{1}=4”)  => 4  ree-1.8.7-2010.01 > puts local_1 4 2. To create & get instance variables dynamically in ruby. instance_varaiable_set & instance_varaiable_get methods are provided and no need to do it usingContinue reading “Dynamic creation of variables in ruby”