Bubble Foundry


Posts tagged with: Ruby

option.rb
Because I’m nothing if not consistent, I’ve made Yet Another Option Library, this time in Ruby: option.rb Read more – ‘option.rb’.
Setting the AWS region when using simple_record
Because I couldn’t for the life of me find the information in the simple_record documentation, here’s how: SimpleRecord.establish_connection(sdb_access_key, sdb_secret_key, :server => sdb_region_domain_name) You can find the SimpleDB region URLs on Amazon’s Regions and Endpoints page. Read more – ‘Setting the AWS region when using simple_record’.
Ruby-style trailing conditionals in Scala
Ruby code often has code with trailing conditionals, which can look pretty neat. person = Person.get(name) unless name.nil? (Note: I really don’t know Ruby, I just saw syntax like this and thought was cool.) So, of course I had to implement it in Scala: You get optional values: Pretty cool, no? I tried and failed […] Read more – ‘Ruby-style trailing conditionals in Scala’.